Skip to content

Commit af66047

Browse files
committed
image: add cloudbuild configuration to build the image gcp-compute-persistent-disk-csi-driver
1 parent 4b1d767 commit af66047

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

cloudbuild.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# See https://cloud.google.com/cloud-build/docs/build-config
2+
# For more information about Image pushing refer to https://github.com/kubernetes/test-infra/blob/master/config/jobs/image-pushing/README.md
3+
timeout: 3600s
4+
5+
options:
6+
substitution_option: ALLOW_LOOSE
7+
8+
steps:
9+
- name: 'gcr.io/k8s-testimages/gcb-docker-gcloud:v20201130-750d12f'
10+
entrypoint: make
11+
env:
12+
- GCE_PD_CSI_STAGING_IMAGE=gcr.io/${_STAGING_PROJECT}/gcp-compute-persistent-disk-csi-driver
13+
- GCE_PD_CSI_STAGING_VERSION=${_PULL_BASE_REF}
14+
# default cloudbuild has HOME=/builder/home and docker buildx is in /root/.docker/cli-plugins/docker-buildx
15+
# set the home to /root explicitly to if using docker buildx
16+
- HOME=/root
17+
args:
18+
- build-and-push-multi-arch
19+
20+
substitutions:
21+
_STAGING_PROJECT: 'k8s-staging-cloud-provider-gcp'
22+
_PULL_BASE_REF: 'master'
23+
24+
tags:
25+
- 'gcp-compute-persistent-disk-csi-driver'
26+
- ${_PULL_BASE_REF}

0 commit comments

Comments
 (0)