Skip to content

Commit

Permalink
Add package write permission to fix workflow docker push permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkubi committed Apr 10, 2024
1 parent f43d5c6 commit cccf466
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
build-and-push:
name: Build and Push
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
# Always run against a tag, even if the commit into the tag has [docker skip] within the commit message.
if: "!contains(github.ref, 'main') || (!contains(github.event.head_commit.message, 'skip docker') && !contains(github.event.head_commit.message, 'docker skip'))"
steps:
Expand Down

0 comments on commit cccf466

Please sign in to comment.