forked from kubernetes-sigs/kube-scheduler-simulator
-
Notifications
You must be signed in to change notification settings - Fork 1
/
cloudbuild.yaml
32 lines (31 loc) · 1.1 KB
/
cloudbuild.yaml
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
# See https://cloud.google.com/cloud-build/docs/build-config
# this must be specified in seconds. If omitted, defaults to 600s (10 mins)
timeout: 2000s
steps:
- name: gcr.io/cloud-builders/docker
args:
- build
- --tag=gcr.io/$PROJECT_ID/simulator-backend:$_GIT_TAG
- --tag=gcr.io/$PROJECT_ID/simulator-backend:latest
- -f=./simulator/Dockerfile
- ./simulator/
- name: gcr.io/cloud-builders/docker
args:
- build
- --tag=gcr.io/$PROJECT_ID/simulator-frontend:$_GIT_TAG
- --tag=gcr.io/$PROJECT_ID/simulator-frontend:latest
- -f=./web/Dockerfile
- ./web/
substitutions:
_GIT_TAG: '12345'
_PULL_BASE_REF: 'master'
# this prevents errors if you don't use both _GIT_TAG and _PULL_BASE_REF,
# or any new substitutions added in the future.
options:
substitution_option: ALLOW_LOOSE
# this will push these images, or cause the build to fail if they weren't built.
images:
- 'gcr.io/$PROJECT_ID/simulator-frontend:$_GIT_TAG'
- 'gcr.io/$PROJECT_ID/simulator-backend:latest'
- 'gcr.io/$PROJECT_ID/simulator-frontend:$_GIT_TAG'
- 'gcr.io/$PROJECT_ID/simulator-backend:latest'