generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
23 lines (23 loc) · 868 Bytes
/
cloudbuild.yaml
File metadata and controls
23 lines (23 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# See https://cloud.google.com/cloud-build/docs/build-config
timeout: 1200s
steps:
- name: gcr.io/cloud-builders/docker
args:
- build
- --tag=gcr.io/$PROJECT_ID/inference-perf:$_GIT_TAG
- --tag=gcr.io/$PROJECT_ID/inference-perf:latest
- .
# default cloudbuild has HOME=/builder/home and docker buildx is in /root/.docker/cli-plugins/docker-buildx
# set the home to /root explicitly to if using docker buildx
# - HOME=/root
substitutions:
_GIT_TAG: '12345'
_PULL_BASE_REF: 'main'
# 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/inference-perf:$_GIT_TAG'
- 'gcr.io/$PROJECT_ID/inference-perf:latest'