From 223dad139858f4996b029b48820fe6228a4194f4 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. --- .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 20b3bbc65..67bd8e57e 100644 --- a/.github/workflows/stackhpc-container-image-build.yml +++ b/.github/workflows/stackhpc-container-image-build.yml @@ -175,7 +175,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