Skip to content

Commit 8207567

Browse files
priteauAlex-Welsh
authored andcommitted
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.
1 parent 34f04d1 commit 8207567

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
@@ -175,7 +175,12 @@ jobs:
175175
# Normally installed during host configure.
176176
- name: Install Docker Python SDK
177177
run: |
178-
sudo pip install docker 'requests<2.32.0'
178+
. /etc/os-release
179+
if [[ $VERSION_ID == 22.04 ]]; then
180+
sudo pip install docker 'requests<2.32.0'
181+
else
182+
sudo pip install docker 'requests<2.32.0' --break-system-packages
183+
fi
179184
180185
- name: Get Kolla tag
181186
id: write-kolla-tag

0 commit comments

Comments
 (0)