We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 377bbb5 commit 04d1157Copy full SHA for 04d1157
.circleci/ci-docker-tag-op-geth-release.sh
@@ -27,12 +27,11 @@ fi
27
echo "Tagging $SOURCE_IMAGE_TAG with '$IMAGE_TAG'"
28
gcloud container images add-tag -q "$SOURCE_IMAGE_TAG" "$TARGET_IMAGE_TAG"
29
30
-# Do not tag with latest if the release is a release candidate.
31
-if [[ "$IMAGE_TAG" == *"rc"* ]]; then
32
- echo "Not tagging with 'latest' because the release is a release candidate."
+# Only tag finalized releases with 'latest'
+if ! [[ "$IMAGE_TAG" =~ ^v1\.[0-9]+\.[0-9]+$ ]]; then
+ echo "Not tagging with 'latest' because the release is not finalized."
33
exit 0
34
fi
35
36
echo "Tagging $SOURCE_IMAGE_TAG with 'latest'"
37
gcloud container images add-tag -q "$SOURCE_IMAGE_TAG" "$TARGET_IMAGE_TAG_LATEST"
38
-
0 commit comments