From 985b1833ec36ca6cfedf07868c60eff1ced46cf5 Mon Sep 17 00:00:00 2001 From: kczulko Date: Wed, 29 May 2024 21:22:27 +0200 Subject: [PATCH] --unwrapScalar for yq cmd (#594) --- oci/private/push.sh.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oci/private/push.sh.tpl b/oci/private/push.sh.tpl index f1f40381..9e0b55f0 100644 --- a/oci/private/push.sh.tpl +++ b/oci/private/push.sh.tpl @@ -44,7 +44,7 @@ while (( $# > 0 )); do esac done -DIGEST=$("${YQ}" eval '.manifests[0].digest' "${IMAGE_DIR}/index.json") +DIGEST=$("${YQ}" --unwrapScalar eval '.manifests[0].digest' "${IMAGE_DIR}/index.json") REFS=$(mktemp) "${CRANE}" push "${IMAGE_DIR}" "${REPOSITORY}@${DIGEST}" "${ARGS[@]+"${ARGS[@]}"}" --image-refs "${REFS}"