Skip to content

Commit

Permalink
fix: evaluate tag in separate step
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiaswx authored Jul 12, 2021
1 parent 9cb8b44 commit bf0e321
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/docker-multiarch-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
-
name: Build and push
uses: docker/build-push-action@v2
Expand All @@ -39,6 +43,6 @@ jobs:
push: true
tags: |
docker.io/twiese99/manjaro-package-mirror:latest
docker.io/twiese99/manjaro-package-mirror:${GITHUB_REF##*/}
docker.io/twiese99/manjaro-package-mirror:${{ steps.get_version.outputs.VERSION }}
ghcr.io/twiese99/manjaro-package-mirror:latest
ghcr.io/twiese99/manjaro-package-mirror:${GITHUB_REF##*/}
ghcr.io/twiese99/manjaro-package-mirror:${{ steps.get_version.outputs.VERSION }}

0 comments on commit bf0e321

Please sign in to comment.