From e8cb91db2b37d0d9d6a60ffb9a6a6585a12010da Mon Sep 17 00:00:00 2001 From: pwei1018 Date: Sat, 8 Jun 2024 00:35:02 -0700 Subject: [PATCH] Fixed a duplicate deployment issue. --- .github/actions/cloud-deploy/files/cloudbuild.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/cloud-deploy/files/cloudbuild.yaml b/.github/actions/cloud-deploy/files/cloudbuild.yaml index b86273fc..82db882e 100644 --- a/.github/actions/cloud-deploy/files/cloudbuild.yaml +++ b/.github/actions/cloud-deploy/files/cloudbuild.yaml @@ -86,7 +86,7 @@ steps: if [ -z ${_DEPLOY_TARGET_FROM} ] || [ ${_DEPLOY_TARGET_FROM} = ${_DEPLOY_TARGET} ]; then RELEASE_TIMESTAMP=$(date '+%Y%m%d%H%M') - gcloud deploy releases create v-$_SHORT_SHA-${RELEASE_TIMESTAMP} \ + gcloud deploy releases create v-${_APP_NAME}-${_SHORT_SHA}-${RELEASE_TIMESTAMP} \ --delivery-pipeline=${_DEPLOY_PIPELINE} \ --region=${_REGION} \ --to-target=${_DEPLOY_TARGET} \