From ea7174a9a1ab66d9abcbafe3e7372442b57b90f4 Mon Sep 17 00:00:00 2001 From: Bryan Frimin Date: Fri, 11 Jul 2025 12:40:25 +0200 Subject: [PATCH] Fix buildx inspect Signed-off-by: Bryan Frimin --- .github/workflows/release.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2af03f142..5b52c01a0 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -99,12 +99,13 @@ jobs: id: image run: | # Get the digest from the registry using docker buildx imagetools - DIGEST=$(docker buildx imagetools inspect ghcr.io/getprobo/probo:${{ github.ref_name }} --format '{{.Manifest.Digest}}' 2>/dev/null || echo "") + # Use Descriptor.Digest for manifest lists (multi-platform images) + DIGEST=$(docker buildx imagetools inspect ghcr.io/getprobo/probo:${{ github.ref_name }} --format '{{.Descriptor.Digest}}' 2>/dev/null || echo "") if [ -z "$DIGEST" ]; then echo "Failed to get digest from registry, trying alternative method..." # Alternative: use the latest tag if version-specific tag fails - DIGEST=$(docker buildx imagetools inspect ghcr.io/getprobo/probo:latest --format '{{.Manifest.Digest}}' 2>/dev/null || echo "") + DIGEST=$(docker buildx imagetools inspect ghcr.io/getprobo/probo:latest --format '{{.Descriptor.Digest}}' 2>/dev/null || echo "") fi if [ -z "$DIGEST" ]; then