Skip to content

Commit

Permalink
dont check branch name on version tag
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjahnke authored May 18, 2021
1 parent 847e510 commit 6da2f59
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,8 @@ jobs:
# Its a version tag
TMP=${TAG:1:${#TAG}}
echo "Found a version tag"
if [[ $BRANCH == 'HEAD' ]]
then
# Its a release version tag
docker tag $IMAGE:$BRANCH $IMAGE:latest
docker push $IMAGE:latest
fi
docker tag $IMAGE:$BRANCH $IMAGE:latest
docker push $IMAGE:latest
fi
# Has tag
docker tag $IMAGE_NAME:$BRANCH_NAME $IMAGE_NAME:$TAG
Expand Down

0 comments on commit 6da2f59

Please sign in to comment.