Skip to content

Commit df63038

Browse files
committed
ci: update workflow-template
Update kaniko build arguments for image pushing - Remove redundant arguments like `--snapshot-mode`, `--use-new-run`, `--cache-copy-layers`, and `--cache-run-layers`. - Add `--destination` arguments to push images with both latest and specific SHA tags to the harbor registry.
1 parent 2fe0b48 commit df63038

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,10 @@ spec:
105105
- "--cache-dir=/workspace/cache"
106106
- "--cache-repo=harbor.injunweb.com/injunweb/{{ $.Values.project }}/cache"
107107
- "--compressed-caching=true"
108-
- "--snapshot-mode=redo"
109-
- "--use-new-run"
110108
- "--verbosity=info"
111-
- "--cache-copy-layers=true"
112-
- "--cache-run-layers=true"
113109
- "--cleanup"
110+
- "--destination=harbor.injunweb.com/injunweb/{{ $.Values.project }}-{{ $app.name }}:{{`{{inputs.parameters.sha}}`}}"
111+
- "--destination=harbor.injunweb.com/injunweb/{{ $.Values.project }}-{{ $app.name }}:latest"
114112
volumeMounts:
115113
- name: docker-config
116114
mountPath: /kaniko/.docker/

0 commit comments

Comments
 (0)