Skip to content

Commit 77d8765

Browse files
author
serverless-qe
committed
[release-1.16] Sync Konflux configurations
1 parent 417eafe commit 77d8765

File tree

1 file changed

+34
-48
lines changed

1 file changed

+34
-48
lines changed

.tekton/docker-build.yaml

Lines changed: 34 additions & 48 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:
@@ -377,7 +353,12 @@ spec:
377353
operator: in
378354
values:
379355
- "false"
380-
- name: clair-scan
356+
- matrix:
357+
params:
358+
- name: image-platform
359+
value:
360+
- $(params.build-platforms)
361+
name: clair-scan
381362
params:
382363
- name: image-digest
383364
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
@@ -399,7 +380,12 @@ spec:
399380
operator: in
400381
values:
401382
- "false"
402-
- name: ecosystem-cert-preflight-checks
383+
- matrix:
384+
params:
385+
- name: platform
386+
value:
387+
- $(params.build-platforms)
388+
name: ecosystem-cert-preflight-checks
403389
params:
404390
- name: image-url
405391
value: $(tasks.build-image-index.results.IMAGE_URL)
@@ -534,7 +520,7 @@ spec:
534520
- name: name
535521
value: rpms-signature-scan
536522
- name: bundle
537-
value: quay.io/konflux-ci/konflux-vanguard/task-rpms-signature-scan:0.2@sha256:e127e0e0a5aab1364b560436594fe7ed67abcd5f8d6dd3ef14ac1f35cf81078c
523+
value: quay.io/konflux-ci/tekton-catalog/task-rpms-signature-scan:0.2@sha256:47b81d6b3d752649eddfbb8b3fd8f6522c4bb07f6d1946f9bc45dae3f92e2c9a
538524
- name: kind
539525
value: task
540526
resolver: bundles

0 commit comments

Comments
 (0)