From 6422332b4df7f5cb5dad2d3d4b7a327fc45f6108 Mon Sep 17 00:00:00 2001 From: Duarte Santos Date: Sat, 5 Sep 2026 14:26:42 +0200 Subject: [PATCH] =?UTF-8?q?CI:=20Digest-Auslese=20ohne=20head=20-1=20?= =?UTF-8?q?=E2=80=94=20pipefail=20+=20SIGPIPE=20(141)=20liess=20beide=20Im?= =?UTF-8?q?age-Jobs=20des=20v1.3.2-Tags=20nach=20dem=20Push=20scheitern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2f17c95..607ef10 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -352,7 +352,10 @@ build:images: "$CONTEXT" # Older buildx builds ignore --format and print the whole Name/MediaType/Digest block, so # pick the digest out of whatever comes back — a multi-line value breaks the dotenv upload. - DIGEST="$(docker buildx imagetools inspect "$REPO:$IMAGE_TAG" --format '{{.Manifest.Digest}}' | grep -oE 'sha256:[0-9a-f]{64}' | head -1)" + # sed, not head: the runner's shell has pipefail on, and `head -1` closing the pipe early + # kills the producer with SIGPIPE (exit 141) as soon as the output is more than one write — + # which a multi-arch manifest list is. That failed both image jobs of the v1.3.2 tag. + DIGEST="$(docker buildx imagetools inspect "$REPO:$IMAGE_TAG" --format '{{.Manifest.Digest}}' | grep -oE 'sha256:[0-9a-f]{64}' | sed -n 1p)" [ -n "$DIGEST" ] || { echo "could not read the digest of $REPO:$IMAGE_TAG" >&2; exit 1; } echo "pushed $REPO:$IMAGE_TAG @ $DIGEST" UPPER="$(echo "$IMAGE" | tr a-z A-Z)"