Skip to content

Commit 6e3e9fb

Browse files
use build-image
1 parent 8d9d1a8 commit 6e3e9fb

File tree

1 file changed

+51
-24
lines changed

1 file changed

+51
-24
lines changed

.tekton/odh-pipeline-runtime-tensorflow-rocm-py312-poc-push.yaml

Lines changed: 51 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,12 @@ spec:
3434
value: codeserver/ubi9-python-3.12/build-args/cpu.conf
3535
- name: build-platforms
3636
value:
37-
- linux-extra-fast/amd64
37+
- linux/x86_64
3838
pipelineSpec:
3939
description: |
40-
This pipeline is ideal for building container images from a Containerfile while maintaining trust after pipeline customization.
41-
42-
_Uses `buildah` to create a 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. 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.
43-
This pipeline is pushed as a Tekton bundle to [quay.io](https://quay.io/repository/konflux-ci/tekton-catalog/pipeline-docker-build-oci-ta?tab=tags)_
40+
This pipeline is ideal for building multi-arch container images from a Containerfile while maintaining trust after pipeline customization.
41+
_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.
42+
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)_
4443
params:
4544
- description: Source Repository URL
4645
name: git-url
@@ -87,7 +86,7 @@ spec:
8786
description: Build a source image.
8887
name: build-source-image
8988
type: string
90-
- default: "false"
89+
- default: "true"
9190
description: Add built image into an OCI image index
9291
name: build-image-index
9392
type: string
@@ -109,6 +108,12 @@ spec:
109108
VMs
110109
name: privileged-nested
111110
type: string
111+
- default:
112+
- linux/x86_64
113+
description: List of platforms to build the container images on. The available
114+
set of values is determined by the configuration of the multi-platform-controller.
115+
name: build-platforms
116+
type: array
112117
results:
113118
- description: ""
114119
name: IMAGE_URL
@@ -136,7 +141,7 @@ spec:
136141
- name: name
137142
value: init
138143
- name: bundle
139-
value: quay.io/konflux-ci/tekton-catalog/task-init:0.2@sha256:4072de81ade0a75ad1eaa5449a7ff02bba84757064549a81b48c28fab3aeca59
144+
value: quay.io/konflux-ci/tekton-catalog/task-init:0.2@sha256:3ca52e1d8885fc229bd9067275f44d5b21a9a609981d0324b525ddeca909bf10
140145
- name: kind
141146
value: task
142147
resolver: bundles
@@ -157,7 +162,7 @@ spec:
157162
- name: name
158163
value: git-clone-oci-ta
159164
- name: bundle
160-
value: quay.io/konflux-ci/tekton-catalog/task-git-clone-oci-ta:0.1@sha256:ea64f5b99202621e78ed3d74b00df5750cbf572c391e6da1956396f5945e4e11
165+
value: quay.io/konflux-ci/tekton-catalog/task-git-clone-oci-ta:0.1@sha256:3dc39eae48745a96097c07c577b944d6203a91c35d3f71d9ed5feab41d327a6a
161166
- name: kind
162167
value: task
163168
resolver: bundles
@@ -186,7 +191,7 @@ spec:
186191
- name: name
187192
value: prefetch-dependencies-oci-ta
188193
- name: bundle
189-
value: quay.io/konflux-ci/tekton-catalog/task-prefetch-dependencies-oci-ta:0.2@sha256:38baecb1488e316b8fa16b770ce942d41ca9892955f7f32d4ca8b1aa14a0e922
194+
value: quay.io/konflux-ci/tekton-catalog/task-prefetch-dependencies-oci-ta:0.2@sha256:5946ca57aa29f162e11b74984ec58960f55f9fb6a0e97c6c9215c4161f768726
190195
- name: kind
191196
value: task
192197
resolver: bundles
@@ -195,8 +200,13 @@ spec:
195200
workspace: git-auth
196201
- name: netrc
197202
workspace: netrc
198-
- name: build-container
199-
timeout: 12h
203+
- matrix:
204+
params:
205+
- name: PLATFORM
206+
value:
207+
- $(params.build-platforms)
208+
name: build-images
209+
timeout: 8h
200210
params:
201211
- name: IMAGE
202212
value: $(params.output-image)
@@ -227,14 +237,16 @@ spec:
227237
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
228238
- name: CACHI2_ARTIFACT
229239
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
240+
- name: IMAGE_APPEND_PLATFORM
241+
value: "true"
230242
runAfter:
231243
- prefetch-dependencies
232244
taskRef:
233245
params:
234246
- name: name
235-
value: buildah-oci-ta
247+
value: buildah-remote-oci-ta
236248
- name: bundle
237-
value: quay.io/konflux-ci/tekton-catalog/task-buildah-oci-ta:0.7@sha256:916781b75e5f42a2e0b578b3ab3418e8bcc305168b2cd26ff41c8057e5c9ec28
249+
value: quay.io/konflux-ci/tekton-catalog/task-buildah-remote-oci-ta:0.6@sha256:17b267b5ae3deca5905d930e54337b89df45d3579f33b7fab4df74ee644cded4
238250
- name: kind
239251
value: task
240252
resolver: bundles
@@ -255,17 +267,17 @@ spec:
255267
value: $(params.build-image-index)
256268
- name: IMAGES
257269
value:
258-
- $(tasks.build-container.results.IMAGE_URL)@$(tasks.build-container.results.IMAGE_DIGEST)
270+
- $(tasks.build-images.results.IMAGE_REF[*])
259271
- name: BUILDAH_FORMAT
260272
value: $(params.buildah-format)
261273
runAfter:
262-
- build-container
274+
- build-images
263275
taskRef:
264276
params:
265277
- name: name
266278
value: build-image-index
267279
- name: bundle
268-
value: quay.io/konflux-ci/tekton-catalog/task-build-image-index:0.2@sha256:803ae1ecf35bc5d22be9882819e942e4b699cb17655055afc6bb6b02d34cfab8
280+
value: quay.io/konflux-ci/tekton-catalog/task-build-image-index:0.1@sha256:31197f4ee71be47c6f491e888ff266cbbb8ad5ed1c7c4141cc14f002d1802a50
269281
- name: kind
270282
value: task
271283
resolver: bundles
@@ -291,7 +303,7 @@ spec:
291303
- name: name
292304
value: source-build-oci-ta
293305
- name: bundle
294-
value: quay.io/konflux-ci/tekton-catalog/task-source-build-oci-ta:0.3@sha256:4abb2dbc9dcfad52d56b490a2f25f99989a2cb2bbd9881223025272db60fd75e
306+
value: quay.io/konflux-ci/tekton-catalog/task-source-build-oci-ta:0.3@sha256:282cb5a9119a87e88559444feff67d76d6f356d03654b4845632c049b2314735
295307
- name: kind
296308
value: task
297309
resolver: bundles
@@ -326,7 +338,12 @@ spec:
326338
operator: in
327339
values:
328340
- "false"
329-
- name: clair-scan
341+
- matrix:
342+
params:
343+
- name: image-platform
344+
value:
345+
- $(params.build-platforms)
346+
name: clair-scan
330347
params:
331348
- name: image-digest
332349
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
@@ -348,7 +365,12 @@ spec:
348365
operator: in
349366
values:
350367
- "false"
351-
- name: ecosystem-cert-preflight-checks
368+
- matrix:
369+
params:
370+
- name: platform
371+
value:
372+
- $(params.build-platforms)
373+
name: ecosystem-cert-preflight-checks
352374
params:
353375
- name: image-url
354376
value: $(tasks.build-image-index.results.IMAGE_URL)
@@ -359,7 +381,7 @@ spec:
359381
- name: name
360382
value: ecosystem-cert-preflight-checks
361383
- name: bundle
362-
value: quay.io/konflux-ci/tekton-catalog/task-ecosystem-cert-preflight-checks:0.2@sha256:04f75593558f79a27da2336400bc63d460bf0c5669e3c13f40ee2fb650b1ad1e
384+
value: quay.io/konflux-ci/tekton-catalog/task-ecosystem-cert-preflight-checks:0.2@sha256:9568c51a5158d534248908b9b561cf67d2826ed4ea164ffd95628bb42380e6ec
363385
- name: kind
364386
value: task
365387
resolver: bundles
@@ -394,7 +416,12 @@ spec:
394416
operator: in
395417
values:
396418
- "false"
397-
- name: clamav-scan
419+
- matrix:
420+
params:
421+
- name: image-arch
422+
value:
423+
- $(params.build-platforms)
424+
name: clamav-scan
398425
params:
399426
- name: image-digest
400427
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
@@ -547,7 +574,7 @@ spec:
547574
- name: name
548575
value: apply-tags
549576
- name: bundle
550-
value: quay.io/konflux-ci/tekton-catalog/task-apply-tags:0.2@sha256:a61d8a6d0ba804869e8fe57a9289161817afad379ef2d7433d75ae40a148e2ec
577+
value: quay.io/konflux-ci/tekton-catalog/task-apply-tags:0.2@sha256:4c2b0a2d2904108f8d19edfa878df6cd49ed19aab73ab6fc6a435fba0265f771
551578
- name: kind
552579
value: task
553580
resolver: bundles
@@ -570,7 +597,7 @@ spec:
570597
- name: name
571598
value: push-dockerfile-oci-ta
572599
- name: bundle
573-
value: quay.io/konflux-ci/tekton-catalog/task-push-dockerfile-oci-ta:0.1@sha256:08bba4a659ecd48f871bef00b80af58954e5a09fcbb28a1783ddd640c4f6535e
600+
value: quay.io/konflux-ci/tekton-catalog/task-push-dockerfile-oci-ta:0.1@sha256:13633d5ba8445c0f732a0a5d1b33ffbb708398e45ef1647542b0ab22fee25a6a
574601
- name: kind
575602
value: task
576603
resolver: bundles
@@ -587,7 +614,7 @@ spec:
587614
- name: name
588615
value: rpms-signature-scan
589616
- name: bundle
590-
value: quay.io/konflux-ci/konflux-vanguard/task-rpms-signature-scan:0.2@sha256:0ea6f3f90ee719a22da894214c4c8c396ab4da7cf411be592a07e9c7cf440850
617+
value: quay.io/konflux-ci/konflux-vanguard/task-rpms-signature-scan:0.2@sha256:78c8d7960c6db284356d94aaae64d1fca34fff4de6a6e20d897a088af0c81cf5
591618
- name: kind
592619
value: task
593620
resolver: bundles

0 commit comments

Comments
 (0)