From b6420cac1ca522cf5155767ae53e76193e47cb5a Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Sun, 18 Aug 2019 21:37:18 +0100 Subject: [PATCH] only print of build env args excitst --- plugin.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugin.sh b/plugin.sh index 8de2750..6333c34 100755 --- a/plugin.sh +++ b/plugin.sh @@ -46,6 +46,14 @@ if [ -n "${PLUGIN_BUILD_ARGS:-}" ]; then BUILD_ARGS=$(echo "${PLUGIN_BUILD_ARGS}" | tr ',' '\n' | while read build_arg; do echo "--build-arg=${build_arg}"; done) fi +if [ -n "${PLUGIN_BUILD_ARGS_FROM_ENV:-}" ]; then + BUILD_ARGS_FROM_ENV=$(echo "${PLUGIN_BUILD_ARGS_FROM_ENV}" | tr ',' '\n' | while read build_arg; do echo "--build-arg=${build_arg}=${!build_arg}"; done) +fi + +echo "BUILD_ARGS_FROM_ENV" +echo ${BUILD_ARGS_FROM_ENV:-} +echo "BUILD_ARGS_FROM_ENV END" + if [ -n "${PLUGIN_TAGS:-}" ]; then DESTINATIONS=$(echo "${PLUGIN_TAGS}" | tr ',' '\n' | while read tag; do echo "--destination=${REGISTRY}/${PLUGIN_REPO}:${tag} "; done) elif [ -f .tags ]; then