Skip to content

Commit 8cc0792

Browse files
committed
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 8207567)
1 parent 2648bd5 commit 8cc0792

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/stackhpc-container-image-build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,12 @@ jobs:
178178
# Normally installed during host configure.
179179
- name: Install Docker Python SDK
180180
run: |
181-
sudo pip install docker 'requests<2.32.0'
181+
. /etc/os-release
182+
if [[ $VERSION_ID == 22.04 ]]; then
183+
sudo pip install docker 'requests<2.32.0'
184+
else
185+
sudo pip install docker 'requests<2.32.0' --break-system-packages
186+
fi
182187
183188
- name: Get Kolla tag
184189
id: write-kolla-tag

0 commit comments

Comments
 (0)