Skip to content

Commit

Permalink
Merge pull request #45 from HeroCC/patch-1
Browse files Browse the repository at this point in the history
Tag docker images with git tag, branch, and ref
  • Loading branch information
C4illin authored Oct 11, 2023
2 parents c833f76 + f2ec7d5 commit bb2eb10
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ jobs:
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
# branch event
type=ref,enable=true,event=branch
# tag event
type=ref,enable=true,event=tag
# pull request event
type=ref,enable=true,prefix=pr-,suffix=,event=pr
# commit sha
type=sha,prefix=,suffix=,format=short
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
Expand Down

0 comments on commit bb2eb10

Please sign in to comment.