From 8cc0792833597f4911db66968f1ec1914e515b19 Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Thu, 15 Jan 2026 22:32:29 +0100 Subject: [PATCH] CI: Fix container image build workflow Ubuntu Noble runners now need the `--break-system-packages` option to install system-wide Python packages. However this option is absent from pip on our Ubuntu Jammy arm64 runners. Detect the distribution version and run the appropriate command. (cherry picked from commit 82075675fe59fbeafd959f2dd80cc2b892e8aa02) --- .github/workflows/stackhpc-container-image-build.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/stackhpc-container-image-build.yml b/.github/workflows/stackhpc-container-image-build.yml index 475eab672d..f41c88b34e 100644 --- a/.github/workflows/stackhpc-container-image-build.yml +++ b/.github/workflows/stackhpc-container-image-build.yml @@ -178,7 +178,12 @@ jobs: # Normally installed during host configure. - name: Install Docker Python SDK run: | - sudo pip install docker 'requests<2.32.0' + . /etc/os-release + if [[ $VERSION_ID == 22.04 ]]; then + sudo pip install docker 'requests<2.32.0' + else + sudo pip install docker 'requests<2.32.0' --break-system-packages + fi - name: Get Kolla tag id: write-kolla-tag