Skip to content

Commit e5a914a

Browse files
authored
Add cloudbuild.yaml for staging (kubernetes#2125)
1 parent 847eadd commit e5a914a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

cloudbuild.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See https://cloud.google.com/cloud-build/docs/build-config
2+
3+
# this must be specified in seconds. If omitted, defaults to 600s (10 mins)
4+
timeout: 1200s
5+
# this prevents errors if you don't use both _GIT_TAG and _PULL_BASE_REF,
6+
# or any new substitutions added in the future.
7+
options:
8+
substitution_option: ALLOW_LOOSE
9+
steps:
10+
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20220609-2e4c91eb7e
11+
entrypoint: make
12+
env:
13+
- REGISTRY=gcr.io/k8s-staging-cloud-provider-os
14+
- VERSION=$_GIT_TAG
15+
args:
16+
- upload-images
17+
substitutions:
18+
# _GIT_TAG will be filled with a git-based tag for the image, of the form
19+
# vYYYYMMDD-hash, and can be used as a substitution
20+
_GIT_TAG: '12345'
21+
# _PULL_BASE_REF will contain the ref that was pushed to to trigger this
22+
# build - a branch like 'master' or 'release-0.2', or a tag like 'v0.2'.
23+
_PULL_BASE_REF: 'master'

0 commit comments

Comments
 (0)