-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (50 loc) · 1.64 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: docker-build
on:
push:
branches:
- master
jobs:
typescript:
runs-on: ubuntu-latest
steps:
- name: Setup yarn and install dependencies
uses: netfloex/actions/yarn@master
- name: Run tests
run: yarn test
- name: Test ESLint
run: yarn lint
- name: Build
run: yarn build
- name: Create Nginx Config folder
run: mkdir nginx/conf.d -p
- name: Remove non production dependencies
run: yarn install --production
- name: Run
run: yarn start
env:
DONT_DOWNLOAD_FILES: true
DONT_CHECK_HOSTS: true
CERTBOT_EMAIL: required
ENABLE_CONFIG_MISSING_CERTS: true
CONFIG_FILE: src/tests/configs/full-valid-config.json
latest:
runs-on: ubuntu-latest
needs: typescript
steps:
- name: Build and push to docker hub
uses: netfloex/actions/docker@master
with:
username: netfloex
token: ${{ secrets.DOCKERHUB_TOKEN }}
tags: netfloex/nginx:latest
standalone:
runs-on: ubuntu-latest
needs: typescript
steps:
- name: Build and push to docker hub
uses: netfloex/actions/docker@master
with:
username: netfloex
token: ${{ secrets.DOCKERHUB_TOKEN }}
file: ./Dockerfile.standalone
tags: netfloex/nginx:standalone