From 55154d80494695fa8ad7a4a494ab6aabb2b9e787 Mon Sep 17 00:00:00 2001 From: tommyd450 Date: Tue, 28 Nov 2023 10:41:57 +0000 Subject: [PATCH 1/2] Enabling prefetchand hermetic build for cli --- .tekton/rekor-cli-1-3-pull-request.yaml | 4 ++++ .tekton/rekor-cli-1-3-push.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.tekton/rekor-cli-1-3-pull-request.yaml b/.tekton/rekor-cli-1-3-pull-request.yaml index 95b94439b..f301e2557 100644 --- a/.tekton/rekor-cli-1-3-pull-request.yaml +++ b/.tekton/rekor-cli-1-3-pull-request.yaml @@ -30,6 +30,10 @@ spec: value: . - name: revision value: '{{revision}}' + - name: prefetch-input + value: '{"type": "gomod", "path": "."}' + - name: hermetic + value: "true" - name: build-source-image value: "true" pipelineSpec: diff --git a/.tekton/rekor-cli-1-3-push.yaml b/.tekton/rekor-cli-1-3-push.yaml index b20835f45..5805cd5f8 100644 --- a/.tekton/rekor-cli-1-3-push.yaml +++ b/.tekton/rekor-cli-1-3-push.yaml @@ -27,6 +27,10 @@ spec: value: . - name: revision value: '{{revision}}' + - name: prefetch-input + value: '{"type": "gomod", "path": "."}' + - name: hermetic + value: "true" - name: build-source-image value: "true" pipelineSpec: From 1145d837c974ed1ac1b5d36cb62ff768871ff5b4 Mon Sep 17 00:00:00 2001 From: tommyd450 Date: Tue, 28 Nov 2023 10:45:56 +0000 Subject: [PATCH 2/2] Adding extra prefetch for Makefile.swagger --- .tekton/rekor-cli-1-3-pull-request.yaml | 2 +- .tekton/rekor-cli-1-3-push.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.tekton/rekor-cli-1-3-pull-request.yaml b/.tekton/rekor-cli-1-3-pull-request.yaml index f301e2557..6ff663a81 100644 --- a/.tekton/rekor-cli-1-3-pull-request.yaml +++ b/.tekton/rekor-cli-1-3-pull-request.yaml @@ -31,7 +31,7 @@ spec: - name: revision value: '{{revision}}' - name: prefetch-input - value: '{"type": "gomod", "path": "."}' + value: '[{"type": "gomod", "path": "."}, {"type": "gomod", "path": "hack/tools"}]' - name: hermetic value: "true" - name: build-source-image diff --git a/.tekton/rekor-cli-1-3-push.yaml b/.tekton/rekor-cli-1-3-push.yaml index 5805cd5f8..9f3e10bfd 100644 --- a/.tekton/rekor-cli-1-3-push.yaml +++ b/.tekton/rekor-cli-1-3-push.yaml @@ -28,7 +28,7 @@ spec: - name: revision value: '{{revision}}' - name: prefetch-input - value: '{"type": "gomod", "path": "."}' + value: '[{"type": "gomod", "path": "."}, {"type": "gomod", "path": "hack/tools"}]' - name: hermetic value: "true" - name: build-source-image