Skip to content

Commit 1f4d49a

Browse files
committed
upload csiproxy binary to gcs with version information
add logic to upload binary to gcs with version information
1 parent e7c1df0 commit 1f4d49a

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.cloudbuild.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@
55
# Extract tag-n-hash value from GIT_TAG (form vYYYYMMDD-tag-n-hash) for REV value.
66
REV=v$(echo "$GIT_TAG" | cut -f3- -d 'v')
77

8-
run_with_go "${CSI_PROW_GO_VERSION_BUILD}" make build REV="${REV}"
9-
cp bin/csi-proxy.exe bin/csi-proxy-"${PULL_BASE_REF}".exe
8+
run_with_go "${CSI_PROW_GO_VERSION_BUILD}" make build REV=${REV}

cloudbuild.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ steps:
1111
# the desired version of Go (currently defined in release-tools/travis.yml),
1212
# but that just speeds up the build and is not required.
1313
- name: 'gcr.io/k8s-testimages/gcb-docker-gcloud:v20200421-a2bf5f8'
14-
entrypoint: bash
14+
entrypoint: bash
1515
env:
1616
- GIT_TAG=${_GIT_TAG}
1717
- PULL_BASE_REF=${_PULL_BASE_REF}
@@ -21,12 +21,12 @@ steps:
2121
substitutions:
2222
# _GIT_TAG will be filled with a git-based tag for the image, of the form vYYYYMMDD-hash, and
2323
# can be used as a substitution
24-
_GIT_TAG: '12345'
24+
# _GIT_TAG: '12345'
2525
# _PULL_BASE_REF will contain the ref that was pushed to trigger this build -
2626
# a branch like 'master' or 'release-0.2', or a tag like 'v0.2'.
27-
_PULL_BASE_REF: 'master'
27+
# _PULL_BASE_REF: 'master'
2828
artifacts:
2929
objects:
30-
location: 'gs://k8s-staging-sig-storage/csi-proxy'
31-
paths: 'bin/csi-proxy-${_PULL_BASE_REF}.exe'
30+
location: 'gs://k8s-staging-sig-storage/csi-proxy/${_PULL_BASE_REF}'
31+
paths: 'bin/csi-proxy.exe'
3232

0 commit comments

Comments
 (0)