Skip to content

Commit

Permalink
fix(RELEASE-1): get-image-architectures uses compact json
Browse files Browse the repository at this point in the history
The tekton tasks would all need to change the json to compact if we do
not do it here.

Signed-off-by: Johnny Bieren <[email protected]>
  • Loading branch information
johnbieren committed Apr 19, 2024
1 parent 2e7d5e2 commit b98602f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/get-image-architectures
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ if [ $(jq -r '.mediaType' <<< $RAW_OUTPUT) == "application/vnd.oci.image.manifes
os=$(jq -r '.Os' <<< $RAW_OUTPUT)
digest=$(jq -r '.Digest' <<< $RAW_OUTPUT)

jq -r -n --arg architecture "$architecture" --arg os "$os" --arg digest "$digest" \
jq -cr -n --arg architecture "$architecture" --arg os "$os" --arg digest "$digest" \
'{"platform": {"architecture": $ARGS.named["architecture"], "os": $ARGS.named["os"]}, "digest": $ARGS.named["digest"]}'
else
# Multi arch
jq -r '.manifests[]' <<< $RAW_OUTPUT
jq -cr '.manifests[]' <<< $RAW_OUTPUT
fi

0 comments on commit b98602f

Please sign in to comment.