Skip to content

Commit

Permalink
fix tag error
Browse files Browse the repository at this point in the history
  • Loading branch information
mattholy committed Feb 5, 2024
1 parent 8146323 commit 8adca8d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ jobs:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Extract tag name
id: extract_tag
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Get the Ref
id: tag-gen
uses: ankitvgupta/ref-to-tag-action@master
with:
ref: ${{ github.ref }}
head_ref: ${{ github.head_ref }}

- name: Build and push Docker image
uses: docker/build-push-action@v5
Expand All @@ -35,8 +38,8 @@ jobs:
push: true
provenance: mode=max
sbom: true
tags: mattholy/wand:${{ steps.extract_tag.outputs.TAG_NAME }}
build-args: VERSION=${{ steps.extract_tag.outputs.TAG_NAME }}
tags: mattholy/wand:${{ steps.tag-gen.outputs.tag }}
build-args: VERSION=${{ steps.tag-gen.outputs.tag }}

- name: Update repo description
uses: peter-evans/dockerhub-description@v3
Expand Down

0 comments on commit 8adca8d

Please sign in to comment.