drone/ContainerImageKaniko: support building multiple registries

This commit is contained in:
David Hiendl 2022-10-24 18:57:12 +02:00
parent 8686dacc0f
commit 42b475f29b

View File

@ -55,7 +55,7 @@
fi
# merge registry auth
if [[ "$MERGE_REGISTRY_JSON" == "true" ]] && [[ ! -z "$REGISTRY_AUTH_JSON" ]] then
if [[ "$MERGE_REGISTRY_JSON" == "true" ]] && [[ ! -z "$REGISTRY_AUTH_JSON" ]]; then
REGISTRY_AUTH_JSON=$(echo "$REGISTRY_AUTH_JSON" | jq --slurp 'reduce .[] as $item ({}; . * $item)')
fi