From 93e3a2b3c0b8e613fce915440fb5bf6ba6c8c6f3 Mon Sep 17 00:00:00 2001 From: Rob Nester Date: Fri, 6 Feb 2026 09:26:27 -0500 Subject: [PATCH] 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 --- .tekton/cli-main-pull-request.yaml | 8 ++++++++ .tekton/cli-main-push.yaml | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/.tekton/cli-main-pull-request.yaml b/.tekton/cli-main-pull-request.yaml index 0535b7ebd..fb96275b1 100644 --- a/.tekton/cli-main-pull-request.yaml +++ b/.tekton/cli-main-pull-request.yaml @@ -40,6 +40,8 @@ spec: value: main-pre-merge-build-args.conf - name: hermetic value: "true" + - name: enable-cache-proxy + value: "true" pipelineSpec: description: | This pipeline is ideal for building container images from a Containerfile while maintaining trust after pipeline customization. @@ -115,6 +117,10 @@ spec: description: List of platforms to build the container images on name: build-platforms type: array + - default: "true" + description: Enable cache proxy + name: enable-cache-proxy + type: string results: - description: "" name: IMAGE_URL @@ -240,6 +246,8 @@ spec: value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT) - name: IMAGE_APPEND_PLATFORM value: "true" + - name: ENABLE_CACHE_PROXY + value: $(params.enable-cache-proxy) runAfter: - prefetch-dependencies taskRef: diff --git a/.tekton/cli-main-push.yaml b/.tekton/cli-main-push.yaml index ba29dec4a..80cbd818d 100644 --- a/.tekton/cli-main-push.yaml +++ b/.tekton/cli-main-push.yaml @@ -39,6 +39,8 @@ spec: value: main-build-args.conf - name: hermetic value: "true" + - name: enable-cache-proxy + value: "true" pipelineSpec: description: | This pipeline is ideal for building container images from a Containerfile while maintaining trust after pipeline customization. @@ -117,6 +119,10 @@ spec: description: List of platforms to build the container images on name: build-platforms type: array + - default: "true" + description: Enable cache proxy + name: enable-cache-proxy + type: string results: - description: "" name: IMAGE_URL @@ -242,6 +248,8 @@ spec: value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT) - name: IMAGE_APPEND_PLATFORM value: "true" + - name: ENABLE_CACHE_PROXY + value: $(params.enable-cache-proxy) runAfter: - prefetch-dependencies taskRef: