Skip to content

Commit 748dac5

Browse files
committed
ci: update kaniko cache config
Update kaniko cache configuration to improve build times. - Add `--cache-ttl` to control cache lifespan - Add `--cache-dir` to specify cache directory - Add `--snapshot-mode=redo` to ensure cache consistency - Add `--use-new-run` to leverage latest kaniko features - Remove `--log-format` and `--log-timestamp` as they are not needed - Add `--compressed-caching` to optimize cache size
1 parent f348056 commit 748dac5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

chart/templates/app/ci/workflow.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,13 @@ spec:
101101
- "--context=/workspace/source"
102102
- "--dockerfile=/workspace/source/Dockerfile"
103103
- "--cache=true"
104+
- "--cache-ttl=24h"
105+
- "--cache-dir=/workspace/cache"
104106
- "--cache-repo=harbor.injunweb.com/injunweb/{{ $.Values.project }}/cache"
105107
- "--compressed-caching=true"
108+
- "--snapshot-mode=redo"
109+
- "--use-new-run"
106110
- "--verbosity=info"
107-
- "--log-format=text"
108-
- "--log-timestamp=true"
109111
- "--destination=harbor.injunweb.com/injunweb/{{ $.Values.project }}-{{ $app.name }}:{{`{{inputs.parameters.sha}}`}}"
110112
- "--destination=harbor.injunweb.com/injunweb/{{ $.Values.project }}-{{ $app.name }}:latest"
111113
volumeMounts:

0 commit comments

Comments
 (0)