Skip to content

Commit

Permalink
Don't use -rc.X tags for creating 'latest' container images
Browse files Browse the repository at this point in the history
  • Loading branch information
jhiemstrawisc committed Dec 18, 2024
1 parent 68935cf commit b5da25c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-prod-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
id: latest_version
run: |
git fetch --tags
tags=$(git tag -l 'v*.*.*' | sort -V)
tags=$(git tag -l 'v*.*.*' | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | sort -V)
highest_tag=$(echo "${tags}" | tail -n1)
echo "Highest version tag is ${highest_tag}"
if [[ "${GITHUB_REF##*/}" == "${highest_tag}" ]]; then
Expand Down

0 comments on commit b5da25c

Please sign in to comment.