Skip to content

Commit ef62f6c

Browse files
author
serverless-qe
committed
[release-v1.19] Sync Konflux configurations
1 parent 6ee35c9 commit ef62f6c

File tree

3 files changed

+52
-44
lines changed

3 files changed

+52
-44
lines changed

.tekton/docker-build.yaml

Lines changed: 38 additions & 32 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,11 +49,13 @@ 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
7261
- default: "false"
@@ -82,17 +71,26 @@ spec:
8271
name: hermetic
8372
type: string
8473
- default: ""
85-
description: Build dependencies to be prefetched by Cachi2
74+
description: Build dependencies to be prefetched
8675
name: prefetch-input
8776
type: string
8877
- default: ""
89-
description: Image tag expiration time, time values could be something like 1h, 2d, 3w for hours, days, and weeks, respectively.
78+
description: Image tag expiration time, time values could be something like 1h,
79+
2d, 3w for hours, days, and weeks, respectively.
9080
name: image-expires-after
9181
type: string
9282
- default: "true"
9383
description: Add built image into an OCI image index
9484
name: build-image-index
9585
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
9694
- default: []
9795
description: Array of --build-arg values ("arg=value" strings) for buildah
9896
name: build-args
@@ -102,13 +100,10 @@ spec:
102100
name: build-args-file
103101
type: string
104102
- default: "false"
105-
description: Whether to enable privileged mode, should be used only with remote VMs
103+
description: Whether to enable privileged mode, should be used only with remote
104+
VMs
106105
name: privileged-nested
107106
type: string
108-
- name: enable-cache-proxy
109-
default: 'false'
110-
description: Enable cache proxy configuration
111-
type: string
112107
results:
113108
- description: ""
114109
name: IMAGE_URL
@@ -274,16 +269,20 @@ 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
280283
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
281284
- name: IMAGE_APPEND_PLATFORM
282285
value: "true"
283-
- name: HTTP_PROXY
284-
value: $(tasks.init.results.http-proxy)
285-
- name: NO_PROXY
286-
value: $(tasks.init.results.no-proxy)
287286
runAfter:
288287
- prefetch-dependencies
289288
taskRef:
@@ -313,6 +312,8 @@ spec:
313312
- name: IMAGES
314313
value:
315314
- $(tasks.build-images.results.IMAGE_REF[*])
315+
- name: BUILDAH_FORMAT
316+
value: $(params.buildah-format)
316317
runAfter:
317318
- build-images
318319
taskRef:
@@ -408,7 +409,12 @@ spec:
408409
operator: in
409410
values:
410411
- "false"
411-
- name: ecosystem-cert-preflight-checks
412+
- matrix:
413+
params:
414+
- name: platform
415+
value:
416+
- $(params.build-platforms)
417+
name: ecosystem-cert-preflight-checks
412418
params:
413419
- name: image-url
414420
value: $(tasks.build-image-index.results.IMAGE_URL)
@@ -543,7 +549,7 @@ spec:
543549
- name: name
544550
value: rpms-signature-scan
545551
- name: bundle
546-
value: quay.io/konflux-ci/konflux-vanguard/task-rpms-signature-scan:0.2@sha256:e127e0e0a5aab1364b560436594fe7ed67abcd5f8d6dd3ef14ac1f35cf81078c
552+
value: quay.io/konflux-ci/tekton-catalog/task-rpms-signature-scan:0.2@sha256:f2df541f49b5310f343b55f58b0881a46a2b46c5df39a9c34563c5042b106f6f
547553
- name: kind
548554
value: task
549555
resolver: bundles

.tekton/kn-backstage-plugins-eventmesh-119-pull-request.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@ spec:
2121
value: openshift/ci-operator/knative-images/eventmesh/Dockerfile
2222
- name: build-args
2323
value:
24-
- GO_BUILDER=brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_8_golang_1.24
25-
- GO_RUNTIME=registry.access.redhat.com/ubi8/ubi-minimal
26-
- JAVA_BUILDER=registry.access.redhat.com/ubi8/openjdk-21
27-
- JAVA_RUNTIME=registry.access.redhat.com/ubi8/openjdk-21-runtime
28-
- NODE_BUILDER=registry.access.redhat.com/ubi8/nodejs-20
29-
- NODE_RUNTIME=registry.access.redhat.com/ubi8/nodejs-20
24+
- CLI_ARTIFACTS=registry.redhat.io/openshift4/ose-cli-artifacts-rhel9:v4.16
25+
- GO_BUILDER=brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_golang_1.24
26+
- GO_RUNTIME=registry.access.redhat.com/ubi9/ubi-minimal
27+
- JAVA_BUILDER=registry.access.redhat.com/ubi9/openjdk-21
28+
- JAVA_RUNTIME=registry.access.redhat.com/ubi9/openjdk-21-runtime
29+
- NODE_BUILDER=registry.access.redhat.com/ubi9/nodejs-20
30+
- NODE_RUNTIME=registry.access.redhat.com/ubi9/nodejs-20
3031
- VERSION=1.39.0
3132
- name: git-url
3233
value: '{{source_url}}'

.tekton/kn-backstage-plugins-eventmesh-119-push.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ spec:
2020
value: openshift/ci-operator/knative-images/eventmesh/Dockerfile
2121
- name: build-args
2222
value:
23-
- GO_BUILDER=brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_8_golang_1.24
24-
- GO_RUNTIME=registry.access.redhat.com/ubi8/ubi-minimal
25-
- JAVA_BUILDER=registry.access.redhat.com/ubi8/openjdk-21
26-
- JAVA_RUNTIME=registry.access.redhat.com/ubi8/openjdk-21-runtime
27-
- NODE_BUILDER=registry.access.redhat.com/ubi8/nodejs-20
28-
- NODE_RUNTIME=registry.access.redhat.com/ubi8/nodejs-20
23+
- CLI_ARTIFACTS=registry.redhat.io/openshift4/ose-cli-artifacts-rhel9:v4.16
24+
- GO_BUILDER=brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_golang_1.24
25+
- GO_RUNTIME=registry.access.redhat.com/ubi9/ubi-minimal
26+
- JAVA_BUILDER=registry.access.redhat.com/ubi9/openjdk-21
27+
- JAVA_RUNTIME=registry.access.redhat.com/ubi9/openjdk-21-runtime
28+
- NODE_BUILDER=registry.access.redhat.com/ubi9/nodejs-20
29+
- NODE_RUNTIME=registry.access.redhat.com/ubi9/nodejs-20
2930
- VERSION=1.39.0
3031
- name: git-url
3132
value: '{{source_url}}'

0 commit comments

Comments
 (0)