Skip to content

Commit cca5fe8

Browse files
authored
Reconstitute "stable" tag in git (#3072)
* Reconstitute "stable" tag in git * Use ALIAS_TAG
1 parent 3cb5b89 commit cca5fe8

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

bin/move_up_stable_tag.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,15 @@ for IMAGE in "${IMAGES[@]}"; do
4646
docker manifest push "${IMAGE}:${ALIAS_TAG}"
4747
done
4848

49-
echo "All images have been tagged as '${ALIAS_TAG}' successfully."
49+
echo "Checking out version tag: v${SOURCE_TAG}"
50+
git checkout "v${SOURCE_TAG}"
51+
52+
echo "Deleting the 'stable' tag from git: local and remote"
53+
git tag -d "${ALIAS_TAG}"
54+
git push oss --delete "${ALIAS_TAG}"
55+
56+
echo "Moving stable tag to new version: v${SOURCE_TAG}"
57+
git tag "${ALIAS_TAG}"
58+
git push oss "${ALIAS_TAG}"
59+
60+
echo "v${SOURCE_TAG} has been tagged as '${ALIAS_TAG}' successfully."

0 commit comments

Comments
 (0)