From 2861b78b86006deaa26e58be9cc58ce80f887fa4 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, 8 insertions(+), 2 deletions(-) diff --git a/.tekton/cli-build.yaml b/.tekton/cli-build.yaml index e95604b9f..88e032eb6 100644 --- a/.tekton/cli-build.yaml +++ b/.tekton/cli-build.yaml @@ -152,6 +152,8 @@ 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: