Skip to content

Commit c03377e

Browse files
committed
fix docker push permissions
1 parent cdaaacc commit c03377e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ concurrency:
1111
group: ${{ format('{0}/{1}', github.repository_owner, github.ref) }}
1212
cancel-in-progress: true
1313

14+
permissions:
15+
packages: write
16+
1417
jobs:
1518
lint:
1619
name: Lint
@@ -47,8 +50,8 @@ jobs:
4750
registry: ghcr.io
4851
username: ${{ github.repository_owner }}
4952
password: ${{ secrets.GITHUB_TOKEN }}
50-
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
53+
# if: github.event_name == 'push' && github.ref == 'refs/heads/master'
5154

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

0 commit comments

Comments
 (0)