Skip to content

Commit

Permalink
tools: Add support for operator/v* tags (#10089)
Browse files Browse the repository at this point in the history
  • Loading branch information
periklis authored Jul 28, 2023
1 parent 24fd566 commit bc01964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/image-tag
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ BRANCH=$(git rev-parse --abbrev-ref HEAD | sed 's#/#-#g')
SHA=$(git rev-parse --short=7 HEAD | head -c7)

# If not a tag, use branch-hash else use tag
TAG=$((git describe --exact-match 2> /dev/null || echo "") | sed 's/v//g')
TAG=$((git describe --tags --exact-match 2> /dev/null || echo "") | sed 's/[operator\/]*v//g')
if [ -z "$TAG" ]
then
Expand Down

0 comments on commit bc01964

Please sign in to comment.