From 2d0df0460ebf2dddcfb8512e298a6f65b00d9c70 Mon Sep 17 00:00:00 2001 From: Zoran Regvart Date: Tue, 16 Jul 2024 14:40:48 +0200 Subject: [PATCH] Configure hermetic build Adds RPM precache support and enables the hermetic build mode. Reference: EC-360 --- .tekton/cli-build.yaml | 2 -- .tekton/cli-main-ci-pull-request.yaml | 4 +++- .tekton/cli-main-ci-push.yaml | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.tekton/cli-build.yaml b/.tekton/cli-build.yaml index 73710745d..c105feb55 100644 --- a/.tekton/cli-build.yaml +++ b/.tekton/cli-build.yaml @@ -151,8 +151,6 @@ spec: value: $(params.output-image).prefetch - name: ociArtifactExpiresAfter value: $(params.image-expires-after) - - name: dev-package-managers - value: 'true' runAfter: - clone-repository taskRef: diff --git a/.tekton/cli-main-ci-pull-request.yaml b/.tekton/cli-main-ci-pull-request.yaml index bb634cf9d..d590fe8c0 100644 --- a/.tekton/cli-main-ci-pull-request.yaml +++ b/.tekton/cli-main-ci-pull-request.yaml @@ -31,11 +31,13 @@ spec: - name: revision value: '{{revision}}' - name: prefetch-input - value: gomod + value: '[{"type": "gomod"}, {"type": "rpm"}]' - name: build-source-image value: 'true' - name: build-args-file value: quick-build-args.conf + - name: hermetic + value: 'true' pipelineRef: name: cli-build workspaces: diff --git a/.tekton/cli-main-ci-push.yaml b/.tekton/cli-main-ci-push.yaml index 56235d19a..b04c9871c 100644 --- a/.tekton/cli-main-ci-push.yaml +++ b/.tekton/cli-main-ci-push.yaml @@ -30,11 +30,13 @@ spec: - name: revision value: '{{revision}}' - name: prefetch-input - value: gomod + value: '[{"type": "gomod"}, {"type": "rpm"}]' - name: build-source-image value: 'true' - name: build-args-file value: '' + - name: hermetic + value: 'true' pipelineRef: name: cli-build workspaces: