Output digests before creating Docker manifest

Add commands to output digests from JSON files before creating a multi-architecture Docker manifest.

Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
elseif 2026-07-16 06:45:05 +08:00 committed by GitHub
parent c4cada441a
commit db0273d518
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -192,8 +192,12 @@ jobs:
- name: Create multi arch manifest - name: Create multi arch manifest
run: | run: |
cat amd64.json
cat arm64.json
AMD64_DIGEST=$(jq -r '."containerimage.digest"' amd64.json) AMD64_DIGEST=$(jq -r '."containerimage.digest"' amd64.json)
ARM64_DIGEST=$(jq -r '."containerimage.digest"' arm64.json) ARM64_DIGEST=$(jq -r '."containerimage.digest"' arm64.json)
echo $AMD64_DIGEST
echo $ARM64_DIGEST
docker buildx imagetools create \ docker buildx imagetools create \
-t ${IMAGE}:${VERSION} \ -t ${IMAGE}:${VERSION} \
${IMAGE}@${AMD64_DIGEST} \ ${IMAGE}@${AMD64_DIGEST} \