Skip to content

Commit

Permalink
get tag from ref (to tag Docker image)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoh86 committed Nov 14, 2020
1 parent 73a39f7 commit a6a2278
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}

- name: Get the tag
id: get_tag
run: echo ::set-output name=TAG::${GITHUB_REF/refs\/tags\//}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
Expand All @@ -38,4 +42,4 @@ jobs:
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/git-vertag:latest
ghcr.io/${{ github.repository_owner }}/git-vertag:${{ github.event.tag_name }}
ghcr.io/${{ github.repository_owner }}/git-vertag:${{ steps.get_tag.outputs.TAG }}

0 comments on commit a6a2278

Please sign in to comment.