Skip to content

Commit c1b335b

Browse files
authored
chore: inline container tagging into release script (GoogleCloudPlatform#174)
1 parent 38047ed commit c1b335b

File tree

2 files changed

+12
-58
lines changed

2 files changed

+12
-58
lines changed

.build/release_artifacts.sh

+12
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,15 @@ for f in $(gsutil ls "gs://alloydb-auth-proxy/v$VERSION/alloydb-auth-proxy*"); d
5656
sha=$(gsutil cat $f | sha256sum --binary | head -c 64)
5757
echo "| [$file](https://storage.googleapis.com/alloydb-auth-proxy/v$VERSION/$file) | $sha |"
5858
done
59+
60+
tag_latest() {
61+
local new_version=$1
62+
for registry in "gcr.io" "us.gcr.io" "eu.gcr.io" "asia.gcr.io"
63+
do
64+
local base_image="$registry/alloydb-connectors/alloydb-auth-proxy"
65+
echo "Tagging $new_version as latest in $registry"
66+
gcloud container images add-tag --quiet "$base_image:$new_version" "$base_image:latest"
67+
done
68+
}
69+
70+
tag_latest "$VERSION"

.build/tag_latest.sh

-58
This file was deleted.

0 commit comments

Comments
 (0)