Fix version output formatting.
This commit is contained in:
parent
d323eae3c3
commit
4acfbf252a
3 changed files with 3 additions and 8 deletions
|
@ -4,9 +4,4 @@ set -eu
|
|||
|
||||
[ -e /opt/resource/common ] && cd /opt/resource
|
||||
. ./common
|
||||
|
||||
jq -r tostring << EOF
|
||||
[
|
||||
$(crane digest "$REPOSITORY:$TAG")
|
||||
]
|
||||
EOF
|
||||
jq --null-input --arg version "$(crane digest "$REPOSITORY:$TAG")" '[$version]'
|
||||
|
|
2
src/in
2
src/in
|
@ -11,4 +11,4 @@ cd "$oci_dir"
|
|||
tar cf "$1/image.tar" ./*
|
||||
cd - 1>&2
|
||||
|
||||
echo "$(jq -r .version < "$INPUT_FILE")"
|
||||
echo "$(jq .version < "$INPUT_FILE")"
|
||||
|
|
2
src/out
2
src/out
|
@ -11,4 +11,4 @@ cd "$oci_dir"
|
|||
tar xf "$1/$(jq -r .params.image < "$INPUT_FILE")"
|
||||
cd - 1>&2
|
||||
crane push "$oci_dir" "$REPOSITORY:$TAG" --image-refs="$IMAGE_REFS_FILE"
|
||||
sed 's/^[^@]*@//' < "$IMAGE_REFS_FILE"
|
||||
jq --null-input --arg version "$(sed 's/^[^@]*@//' < "$IMAGE_REFS_FILE")" '$version'
|
||||
|
|
Reference in a new issue