Skip to content

Commit

Permalink
Only use latest tag on ghcr for stable releases. Add tag for commit…
Browse files Browse the repository at this point in the history
… hash.
  • Loading branch information
jasonforal committed Oct 7, 2024
1 parent d987e6e commit e7bc957
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: |
latest=false
tags: |
type=raw,value=latest,enable=${{ !github.event.release.prerelease && github.event_name == 'release' }}
type=ref,event=tag
type=sha
- name: Build and push Docker image
id: push
Expand Down

0 comments on commit e7bc957

Please sign in to comment.