Skip to content

Commit

Permalink
change version tag generation
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjahnke authored May 18, 2021
1 parent 6da2f59 commit 24e5f8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
echo $BRANCH
echo $TAG
TMP=$TAG
if [[ $TAG == v* ]]
if [[ $TMP == v* ]]
then
# Its a version tag
TMP=${TAG:1:${#TAG}}
Expand All @@ -67,8 +67,8 @@ jobs:
docker push $IMAGE:latest
fi
# Has tag
docker tag $IMAGE_NAME:$BRANCH_NAME $IMAGE_NAME:$TAG
docker push $IMAGE_NAME:$TAG
docker tag $IMAGE_NAME:$BRANCH_NAME $IMAGE_NAME:$TMP
docker push $IMAGE_NAME:$TMP
if: startsWith(github.ref, 'refs/tags')
env:
IMAGE: ${{ steps.get_repo.outputs.IMAGE }}
Expand Down

0 comments on commit 24e5f8d

Please sign in to comment.