Skip to content

Commit

Permalink
GitHub Action: Fix Docker tag
Browse files Browse the repository at this point in the history
  • Loading branch information
fhemberger committed Jul 26, 2021
1 parent 374bfd2 commit 47838c6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
- name: Check out repo
uses: actions/[email protected]

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Get the tag name
run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV

Expand All @@ -32,9 +35,9 @@ jobs:
with:
push: true
tags: |
fhemberger/${{ github.repository }}:latest
fhemberger/${{ github.repository }}:${{ env.TAG }}
fhemberger/${{ github.repository }}:${GITHUB_SHA::7}
${{ github.repository }}:latest
${{ github.repository }}:${{ env.TAG }}
${{ github.repository }}:${GITHUB_SHA::7}
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ env.TAG }}
ghcr.io/user/${{ github.repository }}:${GITHUB_SHA::7}

0 comments on commit 47838c6

Please sign in to comment.