Skip to content

Commit

Permalink
Merge pull request #984 from XudongLiuHarold/fix-release-script
Browse files Browse the repository at this point in the history
fix release script
  • Loading branch information
k8s-ci-robot committed Apr 19, 2024
2 parents c07bb7c + 9e03532 commit 48ac076
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ function push_images() {

login

existing_tags=$(gcloud container images list-tags --filter="tags:${VERSION}" --format=json "${CPI_IMAGE_NAME}")
tag_exists=$(gcloud container images describe "${CPI_IMAGE_NAME}":"${VERSION}" > /dev/null; echo $?)

if [[ "$existing_tags" != "[]" ]]; then
if [[ "$tag_exists" -eq 0 ]]; then
echo "${CPI_IMAGE_NAME}:${VERSION} already exists, skip pushing"
else
echo "pushing ${CPI_IMAGE_NAME}:${VERSION}"
Expand Down

0 comments on commit 48ac076

Please sign in to comment.