fix(ci): tolerate whitespace in buildx metadata-file digest grep
Some checks failed
build-and-release / build (push) Failing after 1m31s
Some checks failed
build-and-release / build (push) Failing after 1m31s
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.
This commit is contained in:
parent
ca1d3f504d
commit
52e7e86a0e
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ jobs:
|
||||||
-t "$image_ref" \
|
-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"
|
test -n "$digest"
|
||||||
printf '%s@%s\n' "$REGISTRY_HOST/$REGISTRY_NAMESPACE/nxtgauge-frontend-solid" "$digest" > /tmp/frontend-solid-image-ref.txt
|
printf '%s@%s\n' "$REGISTRY_HOST/$REGISTRY_NAMESPACE/nxtgauge-frontend-solid" "$digest" > /tmp/frontend-solid-image-ref.txt
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue