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