Skip to content

Commit 4796881

Browse files
committed
ci: update workflow-template
Add build cache and disable push cache for kaniko - Add `--cache=true` to enable build cache - Add `--cache-dir=/workspace/cache` to specify cache directory - Add `--no-push-cache` to disable push cache
1 parent da40e18 commit 4796881

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

chart/templates/app/ci/workflow-template.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ spec:
103103
args:
104104
- "--context=/workspace/source"
105105
- "--dockerfile=/workspace/source/Dockerfile"
106+
- "--cache=true"
106107
- "--cache-dir=/workspace/cache"
108+
- "--no-push-cache"
107109
- "--cleanup"
108110
- "--destination=harbor.injunweb.com/injunweb/{{ $.Values.project }}-{{ $app.name }}:{{`{{inputs.parameters.sha}}`}}"
109111
- "--destination=harbor.injunweb.com/injunweb/{{ $.Values.project }}-{{ $app.name }}:latest"

0 commit comments

Comments
 (0)