Try debug additional tags jq still giving null.
This commit is contained in:
parent
dd9a2b3a06
commit
c1565618f8
1 changed files with 1 additions and 1 deletions
2
src/out
2
src/out
|
@ -13,7 +13,7 @@ cd - 1>&2 2>/dev/null
|
||||||
|
|
||||||
crane push "$oci_dir" "$REPOSITORY:$TAG" --image-refs="$image_refs_file"
|
crane push "$oci_dir" "$REPOSITORY:$TAG" --image-refs="$image_refs_file"
|
||||||
additional_tags="$(jq -r '.params.additional_tags // ""' < "$INPUT_FILE")"
|
additional_tags="$(jq -r '.params.additional_tags // ""' < "$INPUT_FILE")"
|
||||||
if [ -n "$additional_tags" ]; then
|
if [ -n "$additional_tags" ] || [ "$additional_tags" = 'null' ]; then
|
||||||
if ! [ -r "$1/$additional_tags" ]; then
|
if ! [ -r "$1/$additional_tags" ]; then
|
||||||
fail "cannot open file $1/$additional_tags"
|
fail "cannot open file $1/$additional_tags"
|
||||||
fi
|
fi
|
||||||
|
|
Reference in a new issue