From b12824872d351e84260f7e0a4b5b75bf2b9e1ca3 Mon Sep 17 00:00:00 2001 From: Shuo Yang Date: Fri, 10 May 2024 14:02:44 -0700 Subject: [PATCH] ESPv2 release script will not keep overriding existing image versions to avoid global outage. (#901) --- scripts/release/release-stable.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/scripts/release/release-stable.sh b/scripts/release/release-stable.sh index 5877b72d..42660ef6 100755 --- a/scripts/release/release-stable.sh +++ b/scripts/release/release-stable.sh @@ -26,14 +26,10 @@ Usage: ${BASH_SOURCE[0]} [-n ] 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 @@ -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)"