Skip to content

Commit 2547fa1

Browse files
feat(ci): add multi-arch image builds for maas (#570)
Enable multi-architecture container image builds for both maas-api and maas-controller components by adding build-platforms parameter to support x86_64, arm64, ppc64le, and s390x architectures. ## Summary Add multi-architecture build support to models-as-a-service components (maas-api and maas-controller). ## Changes - Added `build-platforms` parameter to all maas pipeline runs (push and pull-request) - Enabled builds for: - `linux/x86_64` (existing) - `linux/arm64` (aarch64) - `linux/ppc64le` (IBM Power) - `linux/s390x` (IBM Z) ## How Has This Been Tested? <!--- Please describe in detail how you tested your changes. --> <!--- Include details of your testing environment, and the tests you ran to --> <!--- see how your change affects other areas of the code, etc. --> Verified on Konflux and quay repo that the builds are made and pushed to repo. <img width="376" height="240" alt="image" src="https://github.com/user-attachments/assets/b20b47bd-268d-4e5a-8f26-2ee023656be9" /> quay - https://quay.io/repository/opendatahub/maas-controller/manifest/sha256:78da17de0901c3b60ef345f01c3910218cb3f492b0bde69068ae54eba8927eef ## Merge criteria: <!--- This PR will be merged by any repository approver when it meets all the points in the checklist --> <!--- Go over all the following points, and put an `x` in all the boxes that apply. --> - [ ] The commits are squashed in a cohesive manner and have meaningful messages. - [ ] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious). - [ ] The developer has manually tested the changes and verified that the changes work <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Added multi-architecture build support across build pipelines, targeting x86_64, arm64, ppc64le and s390x platforms to enable producing and testing images for these architectures. This updates pipeline run parameters so builds will include the listed target architectures consistently across CI runs. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Chaitanya Kulkarni <chkulkar@redhat.com>
1 parent 1cd39ca commit 2547fa1

4 files changed

Lines changed: 24 additions & 0 deletions

File tree

.tekton/odh-maas-api-pull-request.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ spec:
2929
value: maas-api/Dockerfile
3030
- name: path-context
3131
value: maas-api
32+
- name: build-platforms
33+
value:
34+
- linux/x86_64
35+
- linux/arm64
36+
- linux/ppc64le
37+
- linux/s390x
3238
- name: additional-tags
3339
value:
3440
- 'odh-pr-{{revision}}'

.tekton/odh-maas-api-push.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ spec:
2828
value: maas-api/Dockerfile
2929
- name: path-context
3030
value: maas-api
31+
- name: build-platforms
32+
value:
33+
- linux/x86_64
34+
- linux/arm64
35+
- linux/ppc64le
36+
- linux/s390x
3137
pipelineRef:
3238
resolver: git
3339
params:

.tekton/odh-maas-controller-pull-request.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ spec:
3434
- 'odh-pr-{{revision}}'
3535
- name: pipeline-type
3636
value: pull-request
37+
- name: build-platforms
38+
value:
39+
- linux/x86_64
40+
- linux/arm64
41+
- linux/ppc64le
42+
- linux/s390x
3743
pipelineRef:
3844
resolver: git
3945
params:

.tekton/odh-maas-controller-push.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ spec:
2828
value: Dockerfile
2929
- name: path-context
3030
value: maas-controller
31+
- name: build-platforms
32+
value:
33+
- linux/x86_64
34+
- linux/arm64
35+
- linux/ppc64le
36+
- linux/s390x
3137
pipelineRef:
3238
resolver: git
3339
params:

0 commit comments

Comments
 (0)