Skip to content

Commit

Permalink
Fix docker version tag
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaguire committed Feb 24, 2021
1 parent db6bc24 commit 9a25667
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dockerpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Build image
run: |
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v\.//')
[ "$VERSION" == "master" ] && VERSION=latest
docker build . --file resources/Dockerfile_pipeline --tag finlaymaguire/$IMAGE_NAME:$VERSION
Expand All @@ -46,6 +46,6 @@ jobs:
- name: Push image
run: |
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v\.//')
[ "$VERSION" == "master" ] && VERSION=latest
docker push finlaymaguire/$IMAGE_NAME:$VERSION

0 comments on commit 9a25667

Please sign in to comment.