diff --git a/plugin.sh b/plugin.sh index 9611d22..6fb1f2e 100755 --- a/plugin.sh +++ b/plugin.sh @@ -4,17 +4,21 @@ set -euo pipefail export PATH=$PATH:/kaniko/ -DOCKER_AUTH=`echo -n "${DOCKER_USERNAME}:${DOCKER_PASSWORD}" | base64` +if [[ -n "${PLUGIN_USERNAME}" ]]; then + DOCKER_AUTH=`echo -n "${PLUGIN_USERNAME}:${PLUGIN_PASSWORD}" | base64` -cat > /kaniko/.docker/config.json < /kaniko/.docker/config.json <