Fix syntax of out command.
This commit is contained in:
parent
76fcedd569
commit
50ee039175
1 changed files with 2 additions and 5 deletions
7
src/out
7
src/out
|
@ -14,11 +14,8 @@ 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 .params.additional_tags < "$INPUT_FILE")"
|
additional_tags="$(jq .params.additional_tags < "$INPUT_FILE")"
|
||||||
if [ -n "$additional_tags" ]; then
|
if [ -n "$additional_tags" ]; then
|
||||||
if ! [ -e "$additional_tags" ]; then
|
tr '[:space:]' '\n' < "$1/$additional_tags" | grep -v '^$' | while read -r tag; do
|
||||||
fail "additional_tags specified, but doesn't exist"
|
crane tag "$REPOSITORY:@$(cat "$image_refs_file")" "$tag"
|
||||||
fi
|
|
||||||
tr ' \n\t' '\n\n\n' | grep -v '^$' | while read -r tag; do
|
|
||||||
crane tag "$REPOSITORY:@$(cat "$image_refs_file)" "$tag"
|
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Reference in a new issue