Skip to content

Commit

Permalink
strip chars from tag version
Browse files Browse the repository at this point in the history
  • Loading branch information
richarvey committed Mar 29, 2022
1 parent 4b7da41 commit 9353b67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ jobs:
# If this is git tag, use the tag name as a docker tag
if [[ $GITHUB_REF == refs/tags/* ]]; then
VERSION=${GITHUB_REF#refs/tags/v::5}
SEM_TAG=${GITHUB_REF#refs/tags/v}
VERSION=${SEM_TAG:(-5)}
fi
TAGS="${DOCKER_IMAGE}:${VERSION},${DOCKER_IMAGE}:${SHORTREF}"
Expand Down

0 comments on commit 9353b67

Please sign in to comment.