From cb28525b58ca3d6e36267016bb1a5737ee229557 Mon Sep 17 00:00:00 2001 From: kczulko Date: Tue, 28 May 2024 11:42:38 +0200 Subject: [PATCH] --unwrapScalar for yq cmd --- 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}"