From 52e7e86a0ea9524700b74bbadff58105d4391eb3 Mon Sep 17 00:00:00 2001 From: Ashwin Kumar Sivakumar Date: Sun, 12 Jul 2026 18:32:36 +0530 Subject: [PATCH] fix(ci): tolerate whitespace in buildx metadata-file digest grep The docker gateway fix got the build to actually run and push successfully, but the digest-extraction grep required a compact ":" with no space, while buildx writes the metadata file pretty-printed ("containerimage.digest": "sha256:..."), so the match always failed, aborting the step post-push and skipping the GitOps-release step entirely. Match nxtgauge-backend-rust's whitespace-tolerant pattern. --- .forgejo/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 96b44cd..796e9d6 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -75,7 +75,7 @@ jobs: -t "$image_ref" \ . - digest="$(grep -o '"containerimage.digest":"sha256:[^"]*"' "$metadata_file" | cut -d'"' -f4)" + digest="$(grep -o '"containerimage\.digest"[[:space:]]*:[[:space:]]*"sha256:[^"]*"' "$metadata_file" | grep -o 'sha256:[^"]*')" test -n "$digest" printf '%s@%s\n' "$REGISTRY_HOST/$REGISTRY_NAMESPACE/nxtgauge-frontend-solid" "$digest" > /tmp/frontend-solid-image-ref.txt