Skip to content

Commit ad527d1

Browse files
author
serverless-qe
committed
[release-v1.15] Sync Konflux configurations
1 parent b639186 commit ad527d1

File tree

1 file changed

+24
-18
lines changed

1 file changed

+24
-18
lines changed

.tekton/docker-build.yaml

Lines changed: 24 additions & 18 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,11 @@ 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
10191
- default: []
10292
description: Array of --build-arg values ("arg=value" strings) for buildah
10393
name: build-args
@@ -274,6 +264,10 @@ spec:
274264
value: $(params.build-args-file)
275265
- name: PRIVILEGED_NESTED
276266
value: $(params.privileged-nested)
267+
- name: SOURCE_URL
268+
value: $(tasks.clone-repository.results.url)
269+
- name: BUILDAH_FORMAT
270+
value: $(params.buildah-format)
277271
- name: SOURCE_ARTIFACT
278272
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
279273
- name: CACHI2_ARTIFACT
@@ -309,6 +303,8 @@ spec:
309303
- name: IMAGES
310304
value:
311305
- $(tasks.build-images.results.IMAGE_REF[*])
306+
- name: BUILDAH_FORMAT
307+
value: $(params.buildah-format)
312308
runAfter:
313309
- build-images
314310
taskRef:
@@ -377,7 +373,12 @@ spec:
377373
operator: in
378374
values:
379375
- "false"
380-
- name: clair-scan
376+
- matrix:
377+
params:
378+
- name: image-platform
379+
value:
380+
- $(params.build-platforms)
381+
name: clair-scan
381382
params:
382383
- name: image-digest
383384
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
@@ -399,7 +400,12 @@ spec:
399400
operator: in
400401
values:
401402
- "false"
402-
- name: ecosystem-cert-preflight-checks
403+
- matrix:
404+
params:
405+
- name: platform
406+
value:
407+
- $(params.build-platforms)
408+
name: ecosystem-cert-preflight-checks
403409
params:
404410
- name: image-url
405411
value: $(tasks.build-image-index.results.IMAGE_URL)

0 commit comments

Comments
 (0)