Skip to content

Commit

Permalink
fix: appease checkton
Browse files Browse the repository at this point in the history
Signed-off-by: Ralph Bean <[email protected]>
  • Loading branch information
ralphbean committed Oct 24, 2024
1 parent b05a60a commit 9b854aa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tasks/create-pyxis-image/create-pyxis-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,15 @@ spec:
EXPANDED_SIZE=$(wc --bytes "${BLOB_FILE}" | awk '{print $1}' | tr -d '\n')
# Append this information to the parsed_data manifest
cat <<< $(jq \
jq \
'.uncompressed_layers += [{"digest": "'"$EXPANDED_DIGEST"'", "size": '"$EXPANDED_SIZE"'}]' \
"${MANIFEST_FILE}") > "${MANIFEST_FILE}"
"${MANIFEST_FILE}" > "${MANIFEST_FILE}.tmp"
mv "${MANIFEST_FILE}.tmp" "${MANIFEST_FILE}"
# Clean up, in case we're dealing with large images
rm "/tmp/oras-blob-fetch-${BLOB_DIGEST}"
fi
done <<< $(jq -c '.layers[]' "${MANIFEST_FILE}")
done <<< "$(jq -c '.layers[]' "${MANIFEST_FILE}")"
PYXIS_CERT_PATH=/tmp/crt PYXIS_KEY_PATH=/tmp/key create_container_image \
--pyxis-url $PYXIS_URL \
Expand Down

0 comments on commit 9b854aa

Please sign in to comment.