Skip to content

Commit

Permalink
Removed validity check for BUILD_NUMBER
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshmurthy committed Jul 12, 2024
1 parent 2fbb857 commit 4652093
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ jobs:
export VERSION="${{ env.CONTAINER_TAG }}"
export BUILD_NUMBER=$((`curl -s https://quay.io/api/v1/repository/skupper/skupper-router/tag/?filter_tag_name=like:${VERSION} | jq '.tags[] | select(has("end_ts") | not) | .name' | grep -E "\"${VERSION}-[0-9]+\"" | wc -l || echo 0` + 1))
echo "BUILD_NUMBER=${BUILD_NUMBER}" >> $GITHUB_ENV
# Verify if build number is unique, otherwise fail
curl -s "https://quay.io/api/v1/repository/skupper/skupper-router/tag/?filter_tag_name=eq:${VERSION}-${BUILD_NUMBER}" | \
jq .tags | grep -E '^\[\]$' || \
{ echo Unable to get a unique build number ; exit 1 ; }
# This is a release build which means we need to push the :latest tag
# to the container repo.
export PUSH_LATEST=true
Expand Down

0 comments on commit 4652093

Please sign in to comment.