Skip to content

Commit a1006df

Browse files
committed
enable Konflux cache proxy for builds
Enable the cache proxy in the Tekton pipeline definitions to improve build performance by caching dependencies. Ref: EC-1614 Signed-off-by: Rob Nester <rnester@redhat.com>
1 parent dfb7caf commit a1006df

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

.tekton/cli-v07-pull-request.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ spec:
4040
value: quick-build-args.conf
4141
- name: hermetic
4242
value: "true"
43+
- name: enable-cache-proxy
44+
value: "true"
4345
pipelineSpec:
4446
description: |
4547
This pipeline is ideal for building container images from a Containerfile while maintaining trust after pipeline customization.
@@ -110,6 +112,10 @@ spec:
110112
VMs
111113
name: privileged-nested
112114
type: string
115+
- default: "true"
116+
description: Enable cache proxy
117+
name: enable-cache-proxy
118+
type: string
113119
results:
114120
- description: ""
115121
name: IMAGE_URL
@@ -229,6 +235,8 @@ spec:
229235
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
230236
- name: CACHI2_ARTIFACT
231237
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
238+
- name: ENABLE_CACHE_PROXY
239+
value: $(params.enable-cache-proxy)
232240
runAfter:
233241
- prefetch-dependencies
234242
taskRef:

.tekton/cli-v07-push.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ spec:
3939
value: ""
4040
- name: hermetic
4141
value: "true"
42+
- name: enable-cache-proxy
43+
value: "true"
4244
pipelineSpec:
4345
description: |
4446
This pipeline is ideal for building container images from a Containerfile while maintaining trust after pipeline customization.
@@ -109,6 +111,10 @@ spec:
109111
VMs
110112
name: privileged-nested
111113
type: string
114+
- default: "true"
115+
description: Enable cache proxy
116+
name: enable-cache-proxy
117+
type: string
112118
results:
113119
- description: ""
114120
name: IMAGE_URL
@@ -228,6 +234,8 @@ spec:
228234
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
229235
- name: CACHI2_ARTIFACT
230236
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
237+
- name: ENABLE_CACHE_PROXY
238+
value: $(params.enable-cache-proxy)
231239
runAfter:
232240
- prefetch-dependencies
233241
taskRef:

0 commit comments

Comments
 (0)