feat: Add insecure options

This commit is contained in:
Tetsuya Kikuchi 2024-09-04 15:35:03 +09:00
parent 80c31272e0
commit 461c63e176
2 changed files with 15 additions and 0 deletions

View file

@ -59,6 +59,18 @@ if [ "${PLUGIN_SKIP_TLS_VERIFY:-}" = "true" ]; then
EXTRA_OPTS=$(concatenate_strings "${EXTRA_OPTS}" '--skip-tls-verify=true')
fi
if [ "${PLUGIN_INSECURE:-}" = "true" ]; then
EXTRA_OPTS=$(concatenate_strings "${EXTRA_OPTS}" '--insecure=true')
fi
if [ "${PLUGIN_INSECURE_PULL:-}" = "true" ]; then
EXTRA_OPTS=$(concatenate_strings "${EXTRA_OPTS}" '--insecure-pull=true')
fi
if [ -n "${PLUGIN_INSECURE_REGISTRY:-}" ]; then
EXTRA_OPTS=$(concatenate_strings "${EXTRA_OPTS}" "--insecure-registry=${PLUGIN_INSECURE_REGISTRY}")
fi
if [ "${PLUGIN_CACHE:-}" = "true" ]; then
CACHE="--cache=true"
fi