Skip to content

Commit 48b512a

Browse files
serverless-qedsimansk
authored andcommitted
[release-v1.17] Sync Konflux configurations
1 parent 6f00a7d commit 48b512a

File tree

3 files changed

+31
-40
lines changed

3 files changed

+31
-40
lines changed

.tekton/docker-build.yaml

Lines changed: 19 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,6 @@ spec:
1313
1414
_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.
1515
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
3016
params:
3117
- default:
3218
- linux/x86_64
@@ -86,7 +72,7 @@ spec:
8672
name: hermetic
8773
type: string
8874
- default: ""
89-
description: Build dependencies to be prefetched by Cachi2
75+
description: Build dependencies to be prefetched
9076
name: prefetch-input
9177
type: string
9278
- default: ""
@@ -98,6 +84,11 @@ spec:
9884
description: Add built image into an OCI image index
9985
name: build-image-index
10086
type: string
87+
- default: docker
88+
description: The format for the resulting image's mediaType. Valid values are
89+
oci or docker.
90+
name: buildah-format
91+
type: string
10192
- default: []
10293
description: Array of --build-arg values ("arg=value" strings) for buildah
10394
name: build-args
@@ -111,10 +102,6 @@ spec:
111102
VMs
112103
name: privileged-nested
113104
type: string
114-
- name: buildah-format
115-
default: docker
116-
type: string
117-
description: The format for the resulting image's mediaType. Valid values are oci or docker.
118105
results:
119106
- description: ""
120107
name: IMAGE_URL
@@ -278,14 +265,16 @@ spec:
278265
value: $(params.build-args-file)
279266
- name: PRIVILEGED_NESTED
280267
value: $(params.privileged-nested)
268+
- name: SOURCE_URL
269+
value: $(tasks.clone-repository.results.url)
270+
- name: BUILDAH_FORMAT
271+
value: $(params.buildah-format)
281272
- name: SOURCE_ARTIFACT
282273
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
283274
- name: CACHI2_ARTIFACT
284275
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
285276
- name: IMAGE_APPEND_PLATFORM
286277
value: "true"
287-
- name: BUILDAH_FORMAT
288-
value: $(params.buildah-format)
289278
runAfter:
290279
- prefetch-dependencies
291280
taskRef:
@@ -412,7 +401,12 @@ spec:
412401
operator: in
413402
values:
414403
- "false"
415-
- name: ecosystem-cert-preflight-checks
404+
- matrix:
405+
params:
406+
- name: platform
407+
value:
408+
- $(params.build-platforms)
409+
name: ecosystem-cert-preflight-checks
416410
params:
417411
- name: image-url
418412
value: $(tasks.build-image-index.results.IMAGE_URL)
@@ -432,12 +426,12 @@ spec:
432426
operator: in
433427
values:
434428
- "false"
435-
matrix:
429+
- matrix:
436430
params:
437-
- name: platform
431+
- name: image-arch
438432
value:
439433
- $(params.build-platforms)
440-
- name: clamav-scan
434+
name: clamav-scan
441435
params:
442436
- name: image-digest
443437
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
@@ -459,11 +453,6 @@ spec:
459453
operator: in
460454
values:
461455
- "false"
462-
matrix:
463-
params:
464-
- name: image-arch
465-
value:
466-
- $(params.build-platforms)
467456
- name: sast-shell-check
468457
params:
469458
- name: image-digest

.tekton/kn-plugin-func-func-util-117-pull-request.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@ spec:
2121
value: openshift/ci-operator/knative-images/func-util/Dockerfile
2222
- name: build-args
2323
value:
24+
- CLI_ARTIFACTS=registry.redhat.io/openshift4/ose-cli-artifacts-rhel9:v4.15
2425
- GO_BUILDER=brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_8_golang_1.23
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
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.37.0
3132
- name: git-url
3233
value: '{{source_url}}'

.tekton/kn-plugin-func-func-util-117-push.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ spec:
2020
value: openshift/ci-operator/knative-images/func-util/Dockerfile
2121
- name: build-args
2222
value:
23+
- CLI_ARTIFACTS=registry.redhat.io/openshift4/ose-cli-artifacts-rhel9:v4.15
2324
- GO_BUILDER=brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_8_golang_1.23
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
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.37.0
3031
- name: git-url
3132
value: '{{source_url}}'

0 commit comments

Comments
 (0)