From 1e0d6e246496dcbc607fe025cbe4ccedbb721b20 Mon Sep 17 00:00:00 2001 From: naumso Date: Wed, 23 Jul 2025 01:41:21 +0300 Subject: [PATCH] upd --- Dockerfile | 8 ++++---- plugin.sh | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6cae818..165cb96 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ FROM gcr.io/kaniko-project/executor:v1.24.0-debug -ENV HOME /root -ENV USER root +ENV HOME=/root +ENV USER=root ENV SSL_CERT_DIR=/kaniko/ssl/certs -ENV DOCKER_CONFIG /kaniko/.docker/ -ENV DOCKER_CREDENTIAL_GCR_CONFIG /kaniko/.config/gcloud/docker_credential_gcr_config.json +ENV DOCKER_CONFIG=/kaniko/.docker/ +ENV DOCKER_CREDENTIAL_GCR_CONFIG=/kaniko/.config/gcloud/docker_credential_gcr_config.json # add the wrapper which acts as a drone plugin COPY ./plugin.sh /kaniko/plugin.sh diff --git a/plugin.sh b/plugin.sh index 8f5c926..54d5187 100755 --- a/plugin.sh +++ b/plugin.sh @@ -65,9 +65,9 @@ if [[ "${PLUGIN_SKIP_UNUSED_STAGES:-}" == "true" ]]; then fi # full, redo, time -# if [[ -n "${PLUGIN_SNAPSHOT_MODE:-}" ]]; then -# SNAPSHOT_MODE="--snapshot-mode=${PLUGIN_SNAPSHOT_MODE}" -# fi +if [[ -n "${PLUGIN_SNAPSHOT_MODE:-}" ]]; then + SNAPSHOT_MODE="--snapshot-mode=${PLUGIN_SNAPSHOT_MODE}" +fi # auto_tag, if set auto_tag: true, auto generate .tags file # support format Major.Minor.Release or start with `v`