Skip to content

Commit

Permalink
Update publish-docker.yml
Browse files Browse the repository at this point in the history
- Add permissions, solves #91 (comment)
- Add latest flavor explicit for GHCR as well, fixes #91 (review)
  • Loading branch information
svengo authored Nov 21, 2024
1 parent a89d3f9 commit 7705b1b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:

jobs:
docker:
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
steps:
-
Expand Down Expand Up @@ -50,6 +53,7 @@ jobs:
images: ${{ vars.DOCKERHUB_USERNAME }}/${{ vars.IMAGE_NAME }}
flavor: |
latest=${{ github.event_name == 'release' && github.event.release.prerelease == false }}
prefix=ghcr.io/${{ github.repository_owner }}/${{ vars.IMAGE_NAME }}|latest=${{ github.event_name == 'release' && github.event.release.prerelease == false }}
tags: |
type=match,pattern=v([\d.]+),group=1
type=match,pattern=v(.*),group=1
Expand Down

0 comments on commit 7705b1b

Please sign in to comment.