Skip to content

Commit 404aba2

Browse files
committed
ci: docker registry login
1 parent 9c2833f commit 404aba2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Release Build and Publish
33
permissions:
44
contents: write
55
pull-requests: read
6+
packages: write
67

78
on:
89
push:
@@ -193,6 +194,13 @@ jobs:
193194
extra_nix_config: |
194195
experimental-features = nix-command flakes
195196
197+
- name: Log in to GHCR
198+
uses: docker/login-action@v3
199+
with:
200+
registry: ghcr.io
201+
username: ${{ github.actor }}
202+
password: ${{ secrets.GITHUB_TOKEN }}
203+
196204
- name: Build individual images with Nix
197205
run: |
198206
nix build .#image-${{ matrix.arch }}
@@ -227,7 +235,7 @@ jobs:
227235
228236
manifest_args=""
229237
for arch in $(echo "$ARCHS" | jq -r '.[].arch'); do
230-
manifest_args="$manifest_args --amend ghcr.io/${{ env.REPOSITORY }}:$arch"
238+
manifest_args="$manifest_args --amend ghcr.io/${{ env.REPOSITORY }}:${{ env.VERSION }}-$arch"
231239
done
232240
233241
echo "Running docker manifest create $IMAGE $manifest_args"

0 commit comments

Comments
 (0)