From 6295b04d72997851394f800668252dfed2c4bbb6 Mon Sep 17 00:00:00 2001 From: "ekin.tertemiz" Date: Mon, 26 Oct 2026 14:07:00 +0100 Subject: [PATCH] use singlesnapshot to overcome overlayfs issues --- action.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/action.yaml b/action.yaml index 5e98ba5..50782b8 100644 --- a/action.yaml +++ b/action.yaml @@ -54,6 +54,9 @@ runs: # export FF_KANIKO_CACHE_LOOKAHEAD=true # export FF_KANIKO_ROLLING_CACHE_KEY=true + # Specify short sha used as build tag + SHORT_SHA=$(echo "${{ github.sha }}" | cut -c1-7) + # 1. Initialize Kaniko Docker config directory mkdir -p /kaniko/.docker @@ -87,7 +90,7 @@ runs: $DYNAMIC_BUILD_ARGS \ --destination="$REGISTRY_DOMAIN/${{ inputs.destination_image }}:${{ inputs.image_tag }}" \ --cache=true \ - --use-new-run=true \ - --snapshot-mode=redo \ + --no-extra-layers \ + --single-snapshot \ --cache-dir="${{ forgejo.workspace }}/.kaniko-local-cache" \ --cache-repo="$CACHE_REPO_ARG" \ No newline at end of file