Skip to content

Commit eda9f15

Browse files
Fix GHCR push permissions in nightly release workflow
1 parent c5838ac commit eda9f15

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
- uses: docker/build-push-action@v5
6161
with:
6262
context: builders/${{ matrix.entry.target }}
63-
push: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/tags/*' }}
63+
push: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }}
6464
tags: ${{ steps.meta.outputs.tags }}
6565
labels: ${{ steps.meta.outputs.labels }}
6666

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
permissions:
4040
contents: write
4141
id-token: write
42+
packages: write
4243
uses: ./.github/workflows/build.yml
4344
with:
4445
publish: true
@@ -50,6 +51,7 @@ jobs:
5051
permissions:
5152
contents: write
5253
id-token: write
54+
packages: write
5355
uses: ./.github/workflows/build.yml
5456
with:
5557
publish: true

0 commit comments

Comments
 (0)