From d141f9b97303ec1ddf6f529123f05e3ee88c43f5 Mon Sep 17 00:00:00 2001 From: Donny Xia Date: Mon, 2 Nov 2020 10:43:52 -0800 Subject: [PATCH] fix version --- releasing/cloudbuild_kustomize_image.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/releasing/cloudbuild_kustomize_image.yaml b/releasing/cloudbuild_kustomize_image.yaml index aa81f4ca3..87b0212db 100644 --- a/releasing/cloudbuild_kustomize_image.yaml +++ b/releasing/cloudbuild_kustomize_image.yaml @@ -9,8 +9,7 @@ steps: - "PROJECT_ID=$PROJECT_ID" - "_GIT_TAG=$_GIT_TAG" - "_PULL_BASE_REF=$_PULL_BASE_REF" - - "_VERSION=$_VERSION" -# We need to use bash to configure the build date properly. +# We need to use bash to configure the build date and version properly. - name: "gcr.io/cloud-builders/docker" entrypoint: /bin/bash args: @@ -23,15 +22,15 @@ steps: -t gcr.io/$PROJECT_ID/kustomize:latest -t - gcr.io/$PROJECT_ID/kustomize:${_PULL_BASE_REF#*/} + gcr.io/$PROJECT_ID/kustomize:${_PULL_BASE_REF} -f kustomize.Dockerfile --build-arg - VERSION=${_PULL_BASE_REF#*/} + VERSION=${_PULL_BASE_REF} --build-arg COMMIT=$(git rev-parse HEAD) --build-arg - DATE=`date -u +%FT%TZ` + DATE=$(date -u +%FT%TZ) . images: