Skip to content

Commit

Permalink
Fixing tag check for push to stable
Browse files Browse the repository at this point in the history
Signed-off-by: Bettina Heim <[email protected]>
  • Loading branch information
bettinaheim authored Nov 14, 2024
1 parent 291e818 commit d003d13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publishing_stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
run: |
nightly_image=${{ inputs.image_source_location }}/${{ inputs.image_short_name }}:${{ inputs.image_tag }}
echo "FROM $nightly_image" >> ngc.Dockerfile
if [ "$(echo ${{ inputs.image_tag }} | egrep -o '([0-9]{1,}\.)+[0-9]{1,}')" != "${{ inputs.image_tag }}" ]; then
if [ "$(echo ${{ inputs.image_tag }} | egrep -o 'cu[0-9]{1,2}-([0-9]{1,}\.)+[0-9]{1,}')" != "${{ inputs.image_tag }}" ]; then
echo "::error::Only non-prerelease tags can be pushed to stable."
exit 1
fi
Expand Down

0 comments on commit d003d13

Please sign in to comment.