From 1159a541369222d4a81170dbef77271bc09cb2f3 Mon Sep 17 00:00:00 2001 From: Tommy Dalton Date: Mon, 29 Jun 2026 13:52:58 +0100 Subject: [PATCH] Add ALLOW_CROSS_PLATFORM_IMAGES parameter support This change adds support for the ALLOW_CROSS_PLATFORM_IMAGES parameter to both docker-build-oci-ta and bundle-build-oci-ta pipelines. The parameter allows building images that use parent/base images with architectures different from the build host. This is necessary for multi-architecture builds using FROM --platform= statements. Changes: - Added ALLOW_CROSS_PLATFORM_IMAGES pipeline parameter (default: false) - Pass parameter to buildah-oci-ta task in build-container step - Already using buildah-oci-ta:0.10 which supports this parameter Related to CLI stack builds that require cross-platform image support. Co-Authored-By: Claude Sonnet 4.5 --- pipelines/bundle-build-oci-ta.yaml | 6 ++++++ pipelines/docker-build-oci-ta.yaml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/pipelines/bundle-build-oci-ta.yaml b/pipelines/bundle-build-oci-ta.yaml index 79159e4e..50f9867b 100644 --- a/pipelines/bundle-build-oci-ta.yaml +++ b/pipelines/bundle-build-oci-ta.yaml @@ -103,6 +103,10 @@ spec: type: string default: . description: Target directories to scan with SAST tools. Multiple values should be separated with commas. + - name: ALLOW_CROSS_PLATFORM_IMAGES + type: string + default: "false" + description: Allows to use parent images that don't match the build host architecture. This option must be used with caution as it may create incompatible images. results: - description: "" name: IMAGE_URL @@ -277,6 +281,8 @@ spec: value: $(tasks.init.results.http-proxy) - name: NO_PROXY value: $(tasks.init.results.no-proxy) + - name: ALLOW_CROSS_PLATFORM_IMAGES + value: $(params.ALLOW_CROSS_PLATFORM_IMAGES) runAfter: - prefetch-dependencies - generate-labels diff --git a/pipelines/docker-build-oci-ta.yaml b/pipelines/docker-build-oci-ta.yaml index f10360a4..2d292551 100644 --- a/pipelines/docker-build-oci-ta.yaml +++ b/pipelines/docker-build-oci-ta.yaml @@ -107,6 +107,10 @@ spec: type: string default: . description: Target directories to scan with SAST tools. Multiple values should be separated with commas. + - name: ALLOW_CROSS_PLATFORM_IMAGES + type: string + default: "false" + description: Allows to use parent images that don't match the build host architecture. This option must be used with caution as it may create incompatible images. results: - description: "" name: IMAGE_URL @@ -258,6 +262,8 @@ spec: - "short-commit=$(tasks.clone-repository.results.short-commit)" - name: BUILDAH_FORMAT value: $(params.buildah-format) + - name: ALLOW_CROSS_PLATFORM_IMAGES + value: $(params.ALLOW_CROSS_PLATFORM_IMAGES) runAfter: - prefetch-dependencies - generate-labels