Skip to content

Commit

Permalink
Revert "fix: extract image digest raw from yq (#208)"
Browse files Browse the repository at this point in the history
This reverts commit a950c66.
  • Loading branch information
thesayyn authored May 3, 2023
1 parent a950c66 commit 0df4616
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oci/private/push.sh.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ REFERENCES=($(
echo ${REFERENCES[@]}

# get digest of the image
DIGEST=$("${YQ}" eval -oj -r '.manifests[0].digest' "${IMAGE_DIR}/index.json")
DIGEST=$("${YQ}" eval '.manifests[0].digest' "${IMAGE_DIR}/index.json")

# push the first reference with image digest
"${CRANE}" push "${IMAGE_DIR}" "${REFERENCES[0]}@${DIGEST}" "${ARGS[@]+"${ARGS[@]}"}"
Expand All @@ -92,4 +92,4 @@ for REPO in "${REPOTAGS[@]+"${REPOTAGS[@]}"}"; do
fi
"${CRANE}" tag "${REFERENCE[0]}@$DIGEST" "${REFERENCE[1]}" "${ARGS[@]+"${ARGS[@]}"}"
done


0 comments on commit 0df4616

Please sign in to comment.