Skip to content

Commit

Permalink
ESPv2 release script will not keep overriding existing image versions…
Browse files Browse the repository at this point in the history
… to avoid global outage. (#901)
  • Loading branch information
shuoyang2016 authored May 10, 2024
1 parent d830bca commit b128248
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions scripts/release/release-stable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,10 @@ Usage: ${BASH_SOURCE[0]} [-n <current version number>]
This script will release stable ESPv2 docker image with format of:
$(get_proxy_image_release_name):\${MINOR_BASE_VERSION}
$(get_proxy_image_release_name):\${MAJOR_BASE_VERSION}
$(get_serverless_image_release_name):\${MINOR_BASE_VERSION}
$(get_serverless_image_release_name):\${MAJOR_BASE_VERSION}
$(get_gcsrunner_image_release_name):\${MINOR_BASE_VERSION}
$(get_gcsrunner_image_release_name):\${MAJOR_BASE_VERSION}
where:
MINOR_BASE_VERSION=major.minor
MAJOR_BASE_VERSION=major
END_USAGE
exit 1
Expand All @@ -55,14 +51,12 @@ fi

# Minor base is 1.33 if version is 1.33.0
MINOR_BASE_VERSION=${VERSION%.*}
# Major base is 1 if version is 1.33.0
MAJOR_BASE_VERSION=${MINOR_BASE_VERSION%.*}

function tag_stable_image() {
local image=$1

gcloud container images add-tag "${image}:${VERSION}" \
"${image}:${MINOR_BASE_VERSION}" "${image}:${MAJOR_BASE_VERSION}" --quiet
"${image}:${MINOR_BASE_VERSION}" --quiet
}

tag_stable_image "$(get_proxy_image_release_name)"
Expand Down

0 comments on commit b128248

Please sign in to comment.