Skip to content

Commit d3d8539

Browse files
author
serverless-qe
committed
[release-v1.15] Sync Konflux configurations
1 parent 9f5ee6a commit d3d8539

File tree

1 file changed

+38
-61
lines changed

1 file changed

+38
-61
lines changed

.tekton/docker-build.yaml

Lines changed: 38 additions & 61 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:
54
labels:
65
pipelines.openshift.io/runtime: generic
76
pipelines.openshift.io/strategy: docker
@@ -13,27 +12,14 @@ 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
3318
- linux/arm64
3419
- linux/ppc64le
3520
- linux/s390x
36-
description: List of platforms to build the container images on. The available set of values is determined by the configuration of the multi-platform-controller.
21+
description: List of platforms to build the container images on. The available
22+
set of values is determined by the configuration of the multi-platform-controller.
3723
name: build-platforms
3824
type: array
3925
- default: --all-projects --org=3e1a4cca-ebfb-495f-b64c-3cc960d566b4 --exclude=test*,vendor,third_party
@@ -45,7 +31,8 @@ spec:
4531
name: build-source-image
4632
type: string
4733
- default: "false"
48-
description: 'Enable in-development package managers. WARNING: the behavior may change at any time without notice. Use at your own risk.'
34+
description: 'Enable in-development package managers. WARNING: the behavior may
35+
change at any time without notice. Use at your own risk.'
4936
name: prefetch-input-dev-package-managers
5037
- default: []
5138
description: Additional image tags
@@ -62,17 +49,15 @@ spec:
6249
name: output-image
6350
type: string
6451
- default: .
65-
description: Path to the source code of an application's component from where to build image.
52+
description: Path to the source code of an application's component from where
53+
to build image.
6654
name: path-context
6755
type: string
6856
- default: Dockerfile
69-
description: Path to the Dockerfile inside the context specified by parameter path-context
57+
description: Path to the Dockerfile inside the context specified by parameter
58+
path-context
7059
name: dockerfile
7160
type: string
72-
- default: "false"
73-
description: Force rebuild image
74-
name: rebuild
75-
type: string
7661
- default: "false"
7762
description: Skip checks against built image
7863
name: skip-checks
@@ -82,17 +67,26 @@ spec:
8267
name: hermetic
8368
type: string
8469
- default: ""
85-
description: Build dependencies to be prefetched by Cachi2
70+
description: Build dependencies to be prefetched
8671
name: prefetch-input
8772
type: string
8873
- default: ""
89-
description: Image tag expiration time, time values could be something like 1h, 2d, 3w for hours, days, and weeks, respectively.
74+
description: Image tag expiration time, time values could be something like 1h,
75+
2d, 3w for hours, days, and weeks, respectively.
9076
name: image-expires-after
9177
type: string
9278
- default: "true"
9379
description: Add built image into an OCI image index
9480
name: build-image-index
9581
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
9690
- default: []
9791
description: Array of --build-arg values ("arg=value" strings) for buildah
9892
name: build-args
@@ -102,13 +96,10 @@ spec:
10296
name: build-args-file
10397
type: string
10498
- default: "false"
105-
description: Whether to enable privileged mode, should be used only with remote VMs
99+
description: Whether to enable privileged mode, should be used only with remote
100+
VMs
106101
name: privileged-nested
107102
type: string
108-
- name: enable-cache-proxy
109-
default: 'false'
110-
description: Enable cache proxy configuration
111-
type: string
112103
results:
113104
- description: ""
114105
name: IMAGE_URL
@@ -200,12 +191,6 @@ spec:
200191
resolver: bundles
201192
- name: init
202193
params:
203-
- name: image-url
204-
value: $(params.output-image)
205-
- name: rebuild
206-
value: $(params.rebuild)
207-
- name: skip-checks
208-
value: $(params.skip-checks)
209194
- name: enable-cache-proxy
210195
value: $(params.enable-cache-proxy)
211196
taskRef:
@@ -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,16 +254,20 @@ 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
280268
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
281269
- name: IMAGE_APPEND_PLATFORM
282270
value: "true"
283-
- name: HTTP_PROXY
284-
value: $(tasks.init.results.http-proxy)
285-
- name: NO_PROXY
286-
value: $(tasks.init.results.no-proxy)
287271
runAfter:
288272
- prefetch-dependencies
289273
taskRef:
@@ -295,11 +279,6 @@ spec:
295279
- name: kind
296280
value: task
297281
resolver: bundles
298-
when:
299-
- input: $(tasks.init.results.build)
300-
operator: in
301-
values:
302-
- "true"
303282
- name: build-image-index
304283
params:
305284
- name: IMAGE
@@ -313,6 +292,8 @@ spec:
313292
- name: IMAGES
314293
value:
315294
- $(tasks.build-images.results.IMAGE_REF[*])
295+
- name: BUILDAH_FORMAT
296+
value: $(params.buildah-format)
316297
runAfter:
317298
- build-images
318299
taskRef:
@@ -324,11 +305,6 @@ spec:
324305
- name: kind
325306
value: task
326307
resolver: bundles
327-
when:
328-
- input: $(tasks.init.results.build)
329-
operator: in
330-
values:
331-
- "true"
332308
- name: build-source-image
333309
params:
334310
- name: BINARY_IMAGE
@@ -351,10 +327,6 @@ spec:
351327
value: task
352328
resolver: bundles
353329
when:
354-
- input: $(tasks.init.results.build)
355-
operator: in
356-
values:
357-
- "true"
358330
- input: $(params.build-source-image)
359331
operator: in
360332
values:
@@ -408,7 +380,12 @@ spec:
408380
operator: in
409381
values:
410382
- "false"
411-
- name: ecosystem-cert-preflight-checks
383+
- matrix:
384+
params:
385+
- name: platform
386+
value:
387+
- $(params.build-platforms)
388+
name: ecosystem-cert-preflight-checks
412389
params:
413390
- name: image-url
414391
value: $(tasks.build-image-index.results.IMAGE_URL)
@@ -543,7 +520,7 @@ spec:
543520
- name: name
544521
value: rpms-signature-scan
545522
- name: bundle
546-
value: quay.io/konflux-ci/konflux-vanguard/task-rpms-signature-scan:0.2@sha256:7d1c087d7d33dd97effb3b4c9f3788e4c3138da2032040d69da6929e9a3aaceb
523+
value: quay.io/konflux-ci/tekton-catalog/task-rpms-signature-scan:0.2@sha256:47b81d6b3d752649eddfbb8b3fd8f6522c4bb07f6d1946f9bc45dae3f92e2c9a
547524
- name: kind
548525
value: task
549526
resolver: bundles

0 commit comments

Comments
 (0)