add snapshot optimizations
This commit is contained in:
parent
739e4160c1
commit
e5d8a2a82d
1 changed files with 2 additions and 5 deletions
|
|
@ -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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue