Skip to content

Commit 13860a1

Browse files
committed
Digest fixup for pushing to multiple registries
1 parent 8d7db95 commit 13860a1

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/docker.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,18 @@ jobs:
7777
type=image,name=${{ env.GHCR_REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
7878
cache-from: type=registry,ref=${{ env.DH_REGISTRY_IMAGE }}:${{ matrix.codename }}-${{ env.PLATFORM_PAIR }}-${{ env.VERSION }}-buildcache
7979
cache-to: type=registry,ref=${{ env.DH_REGISTRY_IMAGE }}:${{ matrix.codename }}-${{ env.PLATFORM_PAIR }}-${{ env.VERSION }}-buildcache,mode=max
80+
provenance: false
81+
annotations: true
8082

8183

82-
- name: Export digest
84+
- name: Export digests
8385
run: |
8486
mkdir -p /tmp/digests
85-
digest="${{ steps.build.outputs.digest }}"
86-
touch "/tmp/digests/${digest#sha256:}"
87+
echo "${{ steps.build.outputs.metadata }}" > /tmp/metadata.json
88+
jq -r '.[] | select(.digest) | .digest' /tmp/metadata.json | while read -r digest; do
89+
touch "/tmp/digests/${digest#sha256:}"
90+
done
91+
8792
- name: Upload digest
8893
uses: actions/upload-artifact@v4
8994
with:

0 commit comments

Comments
 (0)