|
11 | 11 | description: | |
12 | 12 | This pipeline is ideal for building multi-arch container images from a Containerfile while maintaining trust after pipeline customization. |
13 | 13 |
|
14 | | - _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://enterprisecontract.dev/docs/ec-policies/release_policy.html#trusted_task__trusted) policy as long as all data used to build the artifact is generated from trusted tasks. |
| 14 | + _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. |
15 | 15 | 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 | 16 | finally: |
17 | 17 | - name: show-sbom |
|
93 | 93 | description: Image tag expiration time, time values could be something like 1h, |
94 | 94 | 2d, 3w for hours, days, and weeks, respectively. |
95 | 95 | name: image-expires-after |
| 96 | + type: string |
96 | 97 | - default: "true" |
97 | 98 | description: Add built image into an OCI image index |
98 | 99 | name: build-image-index |
@@ -184,8 +185,10 @@ spec: |
184 | 185 | params: |
185 | 186 | - name: ADDITIONAL_TAGS |
186 | 187 | value: $(params.additional-tags[*]) |
187 | | - - name: IMAGE |
| 188 | + - name: IMAGE_URL |
188 | 189 | value: $(tasks.build-image-index.results.IMAGE_URL) |
| 190 | + - name: IMAGE_DIGEST |
| 191 | + value: $(tasks.build-image-index.results.IMAGE_DIGEST) |
189 | 192 | runAfter: |
190 | 193 | - build-image-index |
191 | 194 | taskRef: |
@@ -325,7 +328,9 @@ spec: |
325 | 328 | - name: build-source-image |
326 | 329 | params: |
327 | 330 | - name: BINARY_IMAGE |
328 | | - value: $(params.output-image) |
| 331 | + value: $(tasks.build-image-index.results.IMAGE_URL) |
| 332 | + - name: BINARY_IMAGE_DIGEST |
| 333 | + value: $(tasks.build-image-index.results.IMAGE_DIGEST) |
329 | 334 | - name: SOURCE_ARTIFACT |
330 | 335 | value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT) |
331 | 336 | - name: CACHI2_ARTIFACT |
@@ -414,7 +419,12 @@ spec: |
414 | 419 | operator: in |
415 | 420 | values: |
416 | 421 | - "false" |
417 | | - - name: clamav-scan |
| 422 | + - matrix: |
| 423 | + params: |
| 424 | + - name: image-arch |
| 425 | + value: |
| 426 | + - $(params.build-platforms) |
| 427 | + name: clamav-scan |
418 | 428 | params: |
419 | 429 | - name: image-digest |
420 | 430 | value: $(tasks.build-image-index.results.IMAGE_DIGEST) |
@@ -524,7 +534,7 @@ spec: |
524 | 534 | - name: name |
525 | 535 | value: rpms-signature-scan |
526 | 536 | - name: bundle |
527 | | - value: quay.io/konflux-ci/tekton-catalog/task-rpms-signature-scan:0.2@sha256:d01508e7a0df9059af2ef455e3e81588a70e0b24cd4a5def35af3cc1537bf84a |
| 537 | + value: quay.io/konflux-ci/konflux-vanguard/task-rpms-signature-scan:0.2@sha256:7d1c087d7d33dd97effb3b4c9f3788e4c3138da2032040d69da6929e9a3aaceb |
528 | 538 | - name: kind |
529 | 539 | value: task |
530 | 540 | resolver: bundles |
|
0 commit comments