rm cache action
This commit is contained in:
parent
8344357bdb
commit
b54a2b146d
1 changed files with 6 additions and 13 deletions
19
action.yaml
19
action.yaml
|
|
@ -41,25 +41,18 @@ runs:
|
|||
using: 'composite'
|
||||
steps:
|
||||
|
||||
- name: Cache Kaniko Layers Locally
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ${{ forgejo.workspace }}/.kaniko-local-cache
|
||||
key: kaniko-cache-${{ hashFiles('**/composer.lock', '**/Dockerfile') }}
|
||||
restore-keys: |
|
||||
kaniko-cache-
|
||||
|
||||
- name: Build and Push with Kaniko
|
||||
shell: sh
|
||||
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
|
||||
# # 0. Enforce cache elision feature flags at the binary execution layer
|
||||
# # ONLY FOR DEVELOP
|
||||
# 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue