Skip to content

Commit

Permalink
use correct git-tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jan 13, 2021
1 parent b31cb65 commit 1553e3f
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 @@ -54,13 +54,17 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Get git tag
run: |
echo "::set-output name=GIT_TAG::$(git describe --tags $(git rev-list --tags --max-count=1))"
id: extract_variables
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ github.repository }}:latest
tags: ${{ github.repository }}:${{ steps.extract_variables.outputs.GIT_TAG }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache

Expand Down

0 comments on commit 1553e3f

Please sign in to comment.