Update plugin.sh
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-08-22 21:48:42 +03:00
parent 956689a086
commit 33618fe25f

View File

@@ -60,9 +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) 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 fi
if [[ "${PLUGIN_SKIP_UNUSED_STAGES:-}" == "true" ]]; then # if [[ "${PLUGIN_SKIP_UNUSED_STAGES:-}" == "true" ]]; then
SKIP_UNUSED_STAGES="--skip-unused-stages=true" # SKIP_UNUSED_STAGES="--skip-unused-stages=true"
fi # fi
if [[ -n "${PLUGIN_SNAPSHOT_MODE:-}" ]]; then if [[ -n "${PLUGIN_SNAPSHOT_MODE:-}" ]]; then
SNAPSHOT_MODE="--snapshot-mode=${PLUGIN_SNAPSHOT_MODE}" SNAPSHOT_MODE="--snapshot-mode=${PLUGIN_SNAPSHOT_MODE}"
@@ -109,13 +109,13 @@ fi
/kaniko/executor -v ${LOG} \ /kaniko/executor -v ${LOG} \
--context=${CONTEXT} \ --context=${CONTEXT} \
--dockerfile=${DOCKERFILE} \ --dockerfile=${DOCKERFILE} \
--skip-unused-stages=true \
${EXTRA_OPTS} \ ${EXTRA_OPTS} \
${DESTINATIONS} \ ${DESTINATIONS} \
${CACHE:-} \ ${CACHE:-} \
${CACHE_TTL:-} \ ${CACHE_TTL:-} \
${CACHE_REPO:-} \ ${CACHE_REPO:-} \
${TARGET:-} \ ${TARGET:-} \
${SKIP_UNUSED_STAGES:-} \
${SNAPSHOT_MODE:-} \ ${SNAPSHOT_MODE:-} \
${BUILD_ARGS:-} \ ${BUILD_ARGS:-} \
${BUILD_ARGS_FROM_ENV:-} ${BUILD_ARGS_FROM_ENV:-}