Skip to content

Commit af2df0c

Browse files
authored
Merge pull request #3013 from divyenpatel/cloudbuild-config-vsphere-csi
add cloudbuild config for vsphere csi
2 parents be4aa87 + 2472e93 commit af2df0c

File tree

2 files changed

+28
-7
lines changed

2 files changed

+28
-7
lines changed

cloudbuild.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# See https://cloud.google.com/cloud-build/docs/build-config
2+
# See https://console.cloud.google.com/gcr/images/k8s-staging-test-infra/global/gcb-docker-gcloud
3+
timeout: 2700s
4+
options:
5+
substitution_option: ALLOW_LOOSE
6+
machineType: 'E2_HIGHCPU_8'
7+
steps:
8+
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240718-5ef92b5c36
9+
entrypoint: make
10+
env:
11+
- DOCKER_CLI_EXPERIMENTAL=enabled
12+
- TAG=$_GIT_TAG
13+
- PULL_BASE_REF=$_PULL_BASE_REF
14+
- DOCKER_BUILDKIT=1
15+
args:
16+
- deploy
17+
substitutions:
18+
# _GIT_TAG will be filled with a git-based tag for the image, of the form vYYYYMMDD-hash, and
19+
# can be used as a substitution
20+
_GIT_TAG: '12345'
21+
_PULL_BASE_REF: 'dev'

hack/release.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@ set -x
2626
DO_WINDOWS_BUILD=${DO_WINDOWS_BUILD_ENV:-true}
2727

2828
# BASE_REPO is the root path of the image repository
29-
readonly BASE_IMAGE_REPO=gcr.io/cloud-provider-vsphere
29+
readonly BASE_IMAGE_REPO=us-central1-docker.pkg.dev/k8s-staging-images/csi-vsphere
3030

3131
# Release images
32-
readonly CSI_IMAGE_RELEASE=${BASE_IMAGE_REPO}/csi/release/driver
33-
readonly SYNCER_IMAGE_RELEASE=${BASE_IMAGE_REPO}/csi/release/syncer
32+
readonly CSI_IMAGE_RELEASE=${BASE_IMAGE_REPO}/release/driver
33+
readonly SYNCER_IMAGE_RELEASE=${BASE_IMAGE_REPO}/release/syncer
3434

3535
# PR images
36-
readonly CSI_IMAGE_PR=${BASE_IMAGE_REPO}/csi/pr/driver
37-
readonly SYNCER_IMAGE_PR=${BASE_IMAGE_REPO}/csi/pr/syncer
36+
readonly CSI_IMAGE_PR=${BASE_IMAGE_REPO}/pr/driver
37+
readonly SYNCER_IMAGE_PR=${BASE_IMAGE_REPO}/pr/syncer
3838

3939
# CI images
40-
readonly CSI_IMAGE_CI=${BASE_IMAGE_REPO}/csi/ci/driver
41-
readonly SYNCER_IMAGE_CI=${BASE_IMAGE_REPO}/csi/ci/syncer
40+
readonly CSI_IMAGE_CI=${BASE_IMAGE_REPO}/ci/driver
41+
readonly SYNCER_IMAGE_CI=${BASE_IMAGE_REPO}/ci/syncer
4242

4343
PUSH=
4444
LATEST=

0 commit comments

Comments
 (0)