CI: Fix aarch64 builds on x86 after switching to role

bf04bd90a15e7d3949214d15a8b8e25f2050bb65 omitted the --platform
option

Change-Id: I4febdf6b391bb7320ea30e1ca71fed81e332021d
This commit is contained in:
Michal Nasiadka 2024-10-03 11:46:48 +02:00 committed by Bartosz Bezak
parent 01515cdff1
commit 39d328da32
4 changed files with 9 additions and 1 deletions

View File

@ -23,6 +23,8 @@
name: kolla-build-centos9s-aarch64
parent: kolla-build-centos9s
nodeset: kolla-centos-9-stream
vars:
base_arch: aarch64
voting: false
- job:

View File

@ -70,6 +70,8 @@
name: kolla-build-rocky9-aarch64
parent: kolla-build-rocky9
nodeset: kolla-rockylinux-9
vars:
base_arch: aarch64
voting: false
- job:

View File

@ -70,6 +70,8 @@
name: kolla-build-ubuntu-aarch64
parent: kolla-build-ubuntu
nodeset: kolla-ubuntu-noble
vars:
base_arch: aarch64
voting: false
- job:

View File

@ -12,5 +12,7 @@
--work-dir {{ kolla_build_logs_dir }}/work_dir
- name: Run kolla-build
vars:
platform: "{{ '--platform linux/arm64' if base_arch == 'aarch64' and base_arch != ansible_facts.architecture }}"
ansible.builtin.command:
cmd: "{{ kolla_build_venv_path }}/bin/kolla-build"
cmd: "{{ kolla_build_venv_path }}/bin/kolla-build {{ platform }}"