From e5d8a2a82d0df749966079d56f613677f1c314f1 Mon Sep 17 00:00:00 2001 From: "ekin.tertemiz" Date: Wed, 14 Oct 2026 14:56:46 +0200 Subject: [PATCH] add snapshot optimizations --- action.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/action.yaml b/action.yaml index 81c508e..4237479 100644 --- a/action.yaml +++ b/action.yaml @@ -42,11 +42,6 @@ runs: env: INPUT_BUILD_ARGS: ${{ inputs.build_args }} run: | - # 0. Enforce cache elision feature flags at the binary execution layer - export FF_KANIKO_SKIP_CACHED_STAGES=true - export FF_KANIKO_INFER_CROSS_STAGE_CACHE_KEY=true - export FF_KANIKO_CACHE_LOOKAHEAD=true - export FF_KANIKO_ROLLING_CACHE_KEY=true # 1. Initialize Kaniko Docker config directory mkdir -p /kaniko/.docker @@ -81,4 +76,6 @@ runs: $DYNAMIC_BUILD_ARGS \ --destination="$REGISTRY_DOMAIN/${{ inputs.destination_image }}:${{ inputs.image_tag }}" \ --cache=true \ + --use-new-run=true \ + --snapshot-mode=redo \ --cache-repo="$CACHE_REPO_ARG" \ No newline at end of file