-
Notifications
You must be signed in to change notification settings - Fork 4
49 lines (45 loc) · 1.08 KB
/
docker-images.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
name: Build Container
on:
push:
branches:
- dev
- master
pull_request:
branches:
- dev
- master
jobs:
job_frontend:
name: Build frontend image
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Dockerfile build
uses: docker/build-push-action@v2
env:
TOKEN: ${{secrets.TOKEN}}
with:
context: .
file: ./frontend/Dockerfile
push: false
tags: zeta/frontend:latest
build-args: |
YFILES_ACCESS=${{secrets.TOKEN}}
job_backend:
name: Build backend image
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Dockerfile build api
uses: docker/build-push-action@v2
with:
context: .
file: ./api/Dockerfile
push: false
tags: zeta/api:latest
build-args: |
APPLICATION_SECRET=superSecret
ZETA_MONGODB_SERVER=mongodb
ZETA_DEPLOYMENT=production