Skip to content

Commit c42930e

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

29 files changed

Lines changed: 123 additions & 189 deletions

.tekton/bundle-build.yaml

Lines changed: 22 additions & 51 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
@@ -68,10 +53,6 @@ spec:
6853
path-context
6954
name: dockerfile
7055
type: string
71-
- default: "false"
72-
description: Force rebuild image
73-
name: rebuild
74-
type: string
7556
- default: "false"
7657
description: Skip checks against built image
7758
name: skip-checks
@@ -81,14 +62,22 @@ spec:
8162
name: hermetic
8263
type: string
8364
- default: ""
84-
description: Build dependencies to be prefetched by Cachi2
65+
description: Build dependencies to be prefetched
8566
name: prefetch-input
8667
type: string
8768
- default: ""
8869
description: Image tag expiration time, time values could be something like 1h,
8970
2d, 3w for hours, days, and weeks, respectively.
9071
name: image-expires-after
9172
type: string
73+
- default: docker
74+
description: The format for the resulting image's mediaType. Valid values are
75+
oci or docker.
76+
name: buildah-format
77+
type: string
78+
- default: "false"
79+
description: Enable cache proxy configuration
80+
name: enable-cache-proxy
9281
- default: []
9382
description: Array of --build-arg values ("arg=value" strings) for buildah
9483
name: build-args
@@ -152,6 +141,14 @@ spec:
152141
value: $(params.build-args-file)
153142
- name: PRIVILEGED_NESTED
154143
value: $(params.privileged-nested)
144+
- name: SOURCE_URL
145+
value: $(tasks.clone-repository.results.url)
146+
- name: BUILDAH_FORMAT
147+
value: $(params.buildah-format)
148+
- name: HTTP_PROXY
149+
value: $(tasks.init.results.http-proxy)
150+
- name: NO_PROXY
151+
value: $(tasks.init.results.no-proxy)
155152
- name: SOURCE_ARTIFACT
156153
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
157154
- name: CACHI2_ARTIFACT
@@ -167,11 +164,6 @@ spec:
167164
- name: kind
168165
value: task
169166
resolver: bundles
170-
when:
171-
- input: $(tasks.init.results.build)
172-
operator: in
173-
values:
174-
- "true"
175167
- name: sast-snyk-check
176168
params:
177169
- name: ARGS
@@ -249,12 +241,8 @@ spec:
249241
resolver: bundles
250242
- name: init
251243
params:
252-
- name: image-url
253-
value: $(params.output-image)
254-
- name: rebuild
255-
value: $(params.rebuild)
256-
- name: skip-checks
257-
value: $(params.skip-checks)
244+
- name: enable-cache-proxy
245+
value: $(params.enable-cache-proxy)
258246
taskRef:
259247
params:
260248
- name: name
@@ -285,11 +273,6 @@ spec:
285273
- name: kind
286274
value: task
287275
resolver: bundles
288-
when:
289-
- input: $(tasks.init.results.build)
290-
operator: in
291-
values:
292-
- "true"
293276
workspaces:
294277
- name: basic-auth
295278
workspace: git-auth
@@ -306,6 +289,8 @@ spec:
306289
- name: IMAGES
307290
value:
308291
- $(tasks.build-images.results.IMAGE_REF[*])
292+
- name: BUILDAH_FORMAT
293+
value: $(params.buildah-format)
309294
runAfter:
310295
- build-images
311296
taskRef:
@@ -317,11 +302,6 @@ spec:
317302
- name: kind
318303
value: task
319304
resolver: bundles
320-
when:
321-
- input: $(tasks.init.results.build)
322-
operator: in
323-
values:
324-
- "true"
325305
- name: build-source-image
326306
params:
327307
- name: BINARY_IMAGE
@@ -344,10 +324,6 @@ spec:
344324
value: task
345325
resolver: bundles
346326
when:
347-
- input: $(tasks.init.results.build)
348-
operator: in
349-
values:
350-
- "true"
351327
- input: $(params.build-source-image)
352328
operator: in
353329
values:
@@ -428,11 +404,6 @@ spec:
428404
operator: in
429405
values:
430406
- "false"
431-
matrix:
432-
params:
433-
- name: image-arch
434-
value:
435-
- $(params.build-platforms)
436407
- name: sast-shell-check
437408
params:
438409
- name: image-digest
@@ -521,7 +492,7 @@ spec:
521492
- name: name
522493
value: rpms-signature-scan
523494
- name: bundle
524-
value: quay.io/konflux-ci/konflux-vanguard/task-rpms-signature-scan:0.2@sha256:098297ee2cd66da57c050d88024b6f221f52af847ab36ca36748906de804adcd
495+
value: quay.io/konflux-ci/tekton-catalog/task-rpms-signature-scan:0.2@sha256:a99d8fd4c9027356b18e5d2910cc44dbc2fcb53c384ba34696645d9e7faa9084
525496
- name: kind
526497
value: task
527498
resolver: bundles

.tekton/docker-build.yaml

Lines changed: 28 additions & 57 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
@@ -73,10 +58,6 @@ spec:
7358
path-context
7459
name: dockerfile
7560
type: string
76-
- default: "false"
77-
description: Force rebuild image
78-
name: rebuild
79-
type: string
8061
- default: "false"
8162
description: Skip checks against built image
8263
name: skip-checks
@@ -86,7 +67,7 @@ spec:
8667
name: hermetic
8768
type: string
8869
- default: ""
89-
description: Build dependencies to be prefetched by Cachi2
70+
description: Build dependencies to be prefetched
9071
name: prefetch-input
9172
type: string
9273
- default: ""
@@ -98,6 +79,14 @@ spec:
9879
description: Add built image into an OCI image index
9980
name: build-image-index
10081
type: string
82+
- default: docker
83+
description: The format for the resulting image's mediaType. Valid values are
84+
oci or docker.
85+
name: buildah-format
86+
type: string
87+
- default: "false"
88+
description: Enable cache proxy configuration
89+
name: enable-cache-proxy
10190
- default: []
10291
description: Array of --build-arg values ("arg=value" strings) for buildah
10392
name: build-args
@@ -202,12 +191,8 @@ spec:
202191
resolver: bundles
203192
- name: init
204193
params:
205-
- name: image-url
206-
value: $(params.output-image)
207-
- name: rebuild
208-
value: $(params.rebuild)
209-
- name: skip-checks
210-
value: $(params.skip-checks)
194+
- name: enable-cache-proxy
195+
value: $(params.enable-cache-proxy)
211196
taskRef:
212197
params:
213198
- name: name
@@ -238,11 +223,6 @@ spec:
238223
- name: kind
239224
value: task
240225
resolver: bundles
241-
when:
242-
- input: $(tasks.init.results.build)
243-
operator: in
244-
values:
245-
- "true"
246226
workspaces:
247227
- name: basic-auth
248228
workspace: git-auth
@@ -274,6 +254,14 @@ spec:
274254
value: $(params.build-args-file)
275255
- name: PRIVILEGED_NESTED
276256
value: $(params.privileged-nested)
257+
- name: SOURCE_URL
258+
value: $(tasks.clone-repository.results.url)
259+
- name: BUILDAH_FORMAT
260+
value: $(params.buildah-format)
261+
- name: HTTP_PROXY
262+
value: $(tasks.init.results.http-proxy)
263+
- name: NO_PROXY
264+
value: $(tasks.init.results.no-proxy)
277265
- name: SOURCE_ARTIFACT
278266
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
279267
- name: CACHI2_ARTIFACT
@@ -291,11 +279,6 @@ spec:
291279
- name: kind
292280
value: task
293281
resolver: bundles
294-
when:
295-
- input: $(tasks.init.results.build)
296-
operator: in
297-
values:
298-
- "true"
299282
- name: build-image-index
300283
params:
301284
- name: IMAGE
@@ -309,6 +292,8 @@ spec:
309292
- name: IMAGES
310293
value:
311294
- $(tasks.build-images.results.IMAGE_REF[*])
295+
- name: BUILDAH_FORMAT
296+
value: $(params.buildah-format)
312297
runAfter:
313298
- build-images
314299
taskRef:
@@ -320,11 +305,6 @@ spec:
320305
- name: kind
321306
value: task
322307
resolver: bundles
323-
when:
324-
- input: $(tasks.init.results.build)
325-
operator: in
326-
values:
327-
- "true"
328308
- name: build-source-image
329309
params:
330310
- name: BINARY_IMAGE
@@ -347,10 +327,6 @@ spec:
347327
value: task
348328
resolver: bundles
349329
when:
350-
- input: $(tasks.init.results.build)
351-
operator: in
352-
values:
353-
- "true"
354330
- input: $(params.build-source-image)
355331
operator: in
356332
values:
@@ -404,7 +380,12 @@ spec:
404380
operator: in
405381
values:
406382
- "false"
407-
- name: ecosystem-cert-preflight-checks
383+
- matrix:
384+
params:
385+
- name: platform
386+
value:
387+
- $(params.build-platforms)
388+
name: ecosystem-cert-preflight-checks
408389
params:
409390
- name: image-url
410391
value: $(tasks.build-image-index.results.IMAGE_URL)
@@ -429,11 +410,6 @@ spec:
429410
- name: image-arch
430411
value:
431412
- $(params.build-platforms)
432-
matrix:
433-
params:
434-
- name: platform
435-
value:
436-
- $(params.build-platforms)
437413
name: clamav-scan
438414
params:
439415
- name: image-digest
@@ -456,11 +432,6 @@ spec:
456432
operator: in
457433
values:
458434
- "false"
459-
matrix:
460-
params:
461-
- name: image-arch
462-
value:
463-
- $(params.build-platforms)
464435
- name: sast-shell-check
465436
params:
466437
- name: image-digest
@@ -549,7 +520,7 @@ spec:
549520
- name: name
550521
value: rpms-signature-scan
551522
- name: bundle
552-
value: quay.io/konflux-ci/konflux-vanguard/task-rpms-signature-scan:0.2@sha256:098297ee2cd66da57c050d88024b6f221f52af847ab36ca36748906de804adcd
523+
value: quay.io/konflux-ci/tekton-catalog/task-rpms-signature-scan:0.2@sha256:a99d8fd4c9027356b18e5d2910cc44dbc2fcb53c384ba34696645d9e7faa9084
553524
- name: kind
554525
value: task
555526
resolver: bundles

0 commit comments

Comments
 (0)