Skip to content

Commit

Permalink
chore: restrict latest tag to v#.#.# tags only (#4566)
Browse files Browse the repository at this point in the history
  • Loading branch information
techfg authored Feb 5, 2025
1 parent 9bc414a commit 5ce2b4a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ jobs:
echo "Pushing tag $GHCR_IMAGE_TAG_BASE to Github Container Registry..."=
docker tag $ECR_SHA_TAG $GHCR_IMAGE_TAG_BASE:$RELEASE_TAG
docker tag $ECR_SHA_TAG $GHCR_IMAGE_TAG_BASE:latest
# Only tag latest if v#.#.# (e.g., not a pre-release/beta/etc.)
if [[ "$RELEASE_TAG" =~ ^v([0-9]+)\.([0-9]+)\.([0-9]+)$ ]]; then
docker tag $ECR_SHA_TAG $GHCR_IMAGE_TAG_BASE:latest
fi
docker push --all-tags $GHCR_IMAGE_TAG_BASE
cli_release_artifacts:
Expand Down

0 comments on commit 5ce2b4a

Please sign in to comment.