Skip to content

Commit 79ca085

Browse files
priteauseunghun1ee
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. note: Removed requests pinning as it was unpinned before. (cherry picked from commit 8207567)
1 parent 9bf7ba4 commit 79ca085

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
@@ -148,7 +148,12 @@ jobs:
148148
# Normally installed during host configure.
149149
- name: Install Docker Python SDK
150150
run: |
151-
sudo pip install docker
151+
. /etc/os-release
152+
if [[ $VERSION_ID == 22.04 ]]; then
153+
sudo pip install docker
154+
else
155+
sudo pip install docker --break-system-packages
156+
fi
152157
153158
- name: Get Kolla tag
154159
id: write-kolla-tag

0 commit comments

Comments
 (0)