Update plugin.sh

This commit is contained in:
2024-02-09 11:26:17 +03:00
parent cb53ef374c
commit 38d9d86a78

View File

@@ -60,6 +60,9 @@ 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}=$(eval "echo \$$build_arg")"; done)
fi
if [ -n "${PLUGIN_TARGET:-}" ]; then
TARGET="--target=${PLUGIN_TARGET}"
# auto_tag, if set auto_tag: true, auto generate .tags file
# support format Major.Minor.Release or start with `v`
# docker tags: Major, Major.Minor, Major.Minor.Release and latest
@@ -108,4 +111,5 @@ fi
${CACHE_REPO:-} \
${TARGET:-} \
${BUILD_ARGS:-} \
${BUILD_ARGS_FROM_ENV:-}
${BUILD_ARGS_FROM_ENV:-} \
${TARGET}