generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 135
/
cloudbuild.yaml
44 lines (43 loc) · 1.5 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
33
34
35
36
37
38
39
40
41
42
43
44
# See https://cloud.google.com/cloud-build/docs/build-config
# this must be specified in seconds. If omitted, defaults to 600s (10 mins)
timeout: 3000s
steps:
- name: gcr.io/cloud-builders/docker
args:
- buildx
- build
- --tag=gcr.io/$PROJECT_ID/simulator-backend:$_GIT_TAG
- --tag=gcr.io/$PROJECT_ID/simulator-backend:latest
- -f=./simulator/cmd/simulator/Dockerfile
- ./simulator/
- name: gcr.io/cloud-builders/docker
args:
- buildx
- build
- --tag=gcr.io/$PROJECT_ID/debuggable-scheduler:$_GIT_TAG
- --tag=gcr.io/$PROJECT_ID/debuggable-scheduler:latest
- -f=./simulator/cmd/scheduler/Dockerfile
- ./simulator/
- name: gcr.io/cloud-builders/docker
args:
- buildx
- 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-frontend:latest'
- 'gcr.io/$PROJECT_ID/simulator-backend:$_GIT_TAG'
- 'gcr.io/$PROJECT_ID/simulator-backend:latest'
- 'gcr.io/$PROJECT_ID/debuggable-scheduler:$_GIT_TAG'
- 'gcr.io/$PROJECT_ID/debuggable-scheduler:latest'