Skip to content

Commit

Permalink
fix docker push permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
syphar committed Sep 22, 2024
1 parent cdaaacc commit c03377e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ concurrency:
group: ${{ format('{0}/{1}', github.repository_owner, github.ref) }}
cancel-in-progress: true

permissions:
packages: write

jobs:
lint:
name: Lint
Expand Down Expand Up @@ -47,8 +50,8 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
# if: github.event_name == 'push' && github.ref == 'refs/heads/master'

- name: Upload the Docker image to GitHub Container Registry
run: docker push ghcr.io/${{ github.repository }}/${{ matrix.image }}:latest
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
# if: github.event_name == 'push' && github.ref == 'refs/heads/master'

0 comments on commit c03377e

Please sign in to comment.