Skip to content

Commit 2f617a5

Browse files
author
serverless-qe
committed
[release-1.36] Sync Konflux configurations
1 parent 126553b commit 2f617a5

29 files changed

Lines changed: 123 additions & 106 deletions

.tekton/bundle-build.yaml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
apiVersion: tekton.dev/v1
22
kind: Pipeline
33
metadata:
4-
creationTimestamp: null
54
labels:
65
pipelines.openshift.io/runtime: generic
76
pipelines.openshift.io/strategy: docker
@@ -13,20 +12,6 @@ spec:
1312
1413
_Uses `buildah` to create a multi-platform container image leveraging [trusted artifacts](https://konflux-ci.dev/architecture/ADR/0036-trusted-artifacts.html). It also optionally creates a source image and runs some build-time tests. This pipeline requires that the [multi platform controller](https://github.com/konflux-ci/multi-platform-controller) is deployed and configured on your Konflux instance. Information is shared between tasks using OCI artifacts instead of PVCs. EC will pass the [`trusted_task.trusted`](https://conforma.dev/docs/policy/packages/release_trusted_task.html#trusted_task__trusted) policy as long as all data used to build the artifact is generated from trusted tasks.
1514
This pipeline is pushed as a Tekton bundle to [quay.io](https://quay.io/repository/konflux-ci/tekton-catalog/pipeline-docker-build-multi-platform-oci-ta?tab=tags)_
16-
finally:
17-
- name: show-sbom
18-
params:
19-
- name: IMAGE_URL
20-
value: $(tasks.build-image-index.results.IMAGE_URL)
21-
taskRef:
22-
params:
23-
- name: name
24-
value: show-sbom
25-
- name: bundle
26-
value: quay.io/konflux-ci/tekton-catalog/task-show-sbom:0.1@sha256:beb0616db051952b4b861dd8c3e00fa1c0eccbd926feddf71194d3bb3ace9ce7
27-
- name: kind
28-
value: task
29-
resolver: bundles
3015
params:
3116
- default: "false"
3217
description: Add built image into an OCI image index
@@ -81,14 +66,22 @@ spec:
8166
name: hermetic
8267
type: string
8368
- default: ""
84-
description: Build dependencies to be prefetched by Cachi2
69+
description: Build dependencies to be prefetched
8570
name: prefetch-input
8671
type: string
8772
- default: ""
8873
description: Image tag expiration time, time values could be something like 1h,
8974
2d, 3w for hours, days, and weeks, respectively.
9075
name: image-expires-after
9176
type: string
77+
- default: docker
78+
description: The format for the resulting image's mediaType. Valid values are
79+
oci or docker.
80+
name: buildah-format
81+
type: string
82+
- default: "false"
83+
description: Enable cache proxy configuration
84+
name: enable-cache-proxy
9285
- default: []
9386
description: Array of --build-arg values ("arg=value" strings) for buildah
9487
name: build-args
@@ -152,6 +145,14 @@ spec:
152145
value: $(params.build-args-file)
153146
- name: PRIVILEGED_NESTED
154147
value: $(params.privileged-nested)
148+
- name: SOURCE_URL
149+
value: $(tasks.clone-repository.results.url)
150+
- name: BUILDAH_FORMAT
151+
value: $(params.buildah-format)
152+
- name: HTTP_PROXY
153+
value: $(tasks.init.results.http-proxy)
154+
- name: NO_PROXY
155+
value: $(tasks.init.results.no-proxy)
155156
- name: SOURCE_ARTIFACT
156157
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
157158
- name: CACHI2_ARTIFACT
@@ -255,6 +256,8 @@ spec:
255256
value: $(params.rebuild)
256257
- name: skip-checks
257258
value: $(params.skip-checks)
259+
- name: enable-cache-proxy
260+
value: $(params.enable-cache-proxy)
258261
taskRef:
259262
params:
260263
- name: name
@@ -306,6 +309,8 @@ spec:
306309
- name: IMAGES
307310
value:
308311
- $(tasks.build-images.results.IMAGE_REF[*])
312+
- name: BUILDAH_FORMAT
313+
value: $(params.buildah-format)
309314
runAfter:
310315
- build-images
311316
taskRef:
@@ -428,11 +433,6 @@ spec:
428433
operator: in
429434
values:
430435
- "false"
431-
matrix:
432-
params:
433-
- name: image-arch
434-
value:
435-
- $(params.build-platforms)
436436
- name: sast-shell-check
437437
params:
438438
- name: image-digest
@@ -521,7 +521,7 @@ spec:
521521
- name: name
522522
value: rpms-signature-scan
523523
- name: bundle
524-
value: quay.io/konflux-ci/konflux-vanguard/task-rpms-signature-scan:0.2@sha256:098297ee2cd66da57c050d88024b6f221f52af847ab36ca36748906de804adcd
524+
value: quay.io/konflux-ci/tekton-catalog/task-rpms-signature-scan:0.2@sha256:f2df541f49b5310f343b55f58b0881a46a2b46c5df39a9c34563c5042b106f6f
525525
- name: kind
526526
value: task
527527
resolver: bundles

.tekton/docker-build.yaml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
apiVersion: tekton.dev/v1
22
kind: Pipeline
33
metadata:
4-
creationTimestamp: null
54
labels:
65
pipelines.openshift.io/runtime: generic
76
pipelines.openshift.io/strategy: docker
@@ -13,20 +12,6 @@ spec:
1312
1413
_Uses `buildah` to create a multi-platform container image leveraging [trusted artifacts](https://konflux-ci.dev/architecture/ADR/0036-trusted-artifacts.html). It also optionally creates a source image and runs some build-time tests. This pipeline requires that the [multi platform controller](https://github.com/konflux-ci/multi-platform-controller) is deployed and configured on your Konflux instance. Information is shared between tasks using OCI artifacts instead of PVCs. EC will pass the [`trusted_task.trusted`](https://conforma.dev/docs/policy/packages/release_trusted_task.html#trusted_task__trusted) policy as long as all data used to build the artifact is generated from trusted tasks.
1514
This pipeline is pushed as a Tekton bundle to [quay.io](https://quay.io/repository/konflux-ci/tekton-catalog/pipeline-docker-build-multi-platform-oci-ta?tab=tags)_
16-
finally:
17-
- name: show-sbom
18-
params:
19-
- name: IMAGE_URL
20-
value: $(tasks.build-image-index.results.IMAGE_URL)
21-
taskRef:
22-
params:
23-
- name: name
24-
value: show-sbom
25-
- name: bundle
26-
value: quay.io/konflux-ci/tekton-catalog/task-show-sbom:0.1@sha256:beb0616db051952b4b861dd8c3e00fa1c0eccbd926feddf71194d3bb3ace9ce7
27-
- name: kind
28-
value: task
29-
resolver: bundles
3015
params:
3116
- default:
3217
- linux/x86_64
@@ -86,7 +71,7 @@ spec:
8671
name: hermetic
8772
type: string
8873
- default: ""
89-
description: Build dependencies to be prefetched by Cachi2
74+
description: Build dependencies to be prefetched
9075
name: prefetch-input
9176
type: string
9277
- default: ""
@@ -98,6 +83,14 @@ spec:
9883
description: Add built image into an OCI image index
9984
name: build-image-index
10085
type: string
86+
- default: docker
87+
description: The format for the resulting image's mediaType. Valid values are
88+
oci or docker.
89+
name: buildah-format
90+
type: string
91+
- default: "false"
92+
description: Enable cache proxy configuration
93+
name: enable-cache-proxy
10194
- default: []
10295
description: Array of --build-arg values ("arg=value" strings) for buildah
10396
name: build-args
@@ -208,6 +201,8 @@ spec:
208201
value: $(params.rebuild)
209202
- name: skip-checks
210203
value: $(params.skip-checks)
204+
- name: enable-cache-proxy
205+
value: $(params.enable-cache-proxy)
211206
taskRef:
212207
params:
213208
- name: name
@@ -274,6 +269,14 @@ spec:
274269
value: $(params.build-args-file)
275270
- name: PRIVILEGED_NESTED
276271
value: $(params.privileged-nested)
272+
- name: SOURCE_URL
273+
value: $(tasks.clone-repository.results.url)
274+
- name: BUILDAH_FORMAT
275+
value: $(params.buildah-format)
276+
- name: HTTP_PROXY
277+
value: $(tasks.init.results.http-proxy)
278+
- name: NO_PROXY
279+
value: $(tasks.init.results.no-proxy)
277280
- name: SOURCE_ARTIFACT
278281
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
279282
- name: CACHI2_ARTIFACT
@@ -309,6 +312,8 @@ spec:
309312
- name: IMAGES
310313
value:
311314
- $(tasks.build-images.results.IMAGE_REF[*])
315+
- name: BUILDAH_FORMAT
316+
value: $(params.buildah-format)
312317
runAfter:
313318
- build-images
314319
taskRef:
@@ -404,7 +409,12 @@ spec:
404409
operator: in
405410
values:
406411
- "false"
407-
- name: ecosystem-cert-preflight-checks
412+
- matrix:
413+
params:
414+
- name: platform
415+
value:
416+
- $(params.build-platforms)
417+
name: ecosystem-cert-preflight-checks
408418
params:
409419
- name: image-url
410420
value: $(tasks.build-image-index.results.IMAGE_URL)
@@ -429,11 +439,6 @@ spec:
429439
- name: image-arch
430440
value:
431441
- $(params.build-platforms)
432-
matrix:
433-
params:
434-
- name: platform
435-
value:
436-
- $(params.build-platforms)
437442
name: clamav-scan
438443
params:
439444
- name: image-digest
@@ -456,11 +461,6 @@ spec:
456461
operator: in
457462
values:
458463
- "false"
459-
matrix:
460-
params:
461-
- name: image-arch
462-
value:
463-
- $(params.build-platforms)
464464
- name: sast-shell-check
465465
params:
466466
- name: image-digest
@@ -549,7 +549,7 @@ spec:
549549
- name: name
550550
value: rpms-signature-scan
551551
- name: bundle
552-
value: quay.io/konflux-ci/konflux-vanguard/task-rpms-signature-scan:0.2@sha256:098297ee2cd66da57c050d88024b6f221f52af847ab36ca36748906de804adcd
552+
value: quay.io/konflux-ci/tekton-catalog/task-rpms-signature-scan:0.2@sha256:f2df541f49b5310f343b55f58b0881a46a2b46c5df39a9c34563c5042b106f6f
553553
- name: kind
554554
value: task
555555
resolver: bundles

0 commit comments

Comments
 (0)