Skip to content

Commit c6c6b81

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. (cherry picked from commit 8207567)
1 parent c2625e1 commit c6c6b81

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,13 @@ jobs:
163163
# Normally installed during host configure.
164164
- name: Install Docker Python SDK
165165
run: |
166-
sudo pip install docker 'requests<2.32.0'
167-
166+
. /etc/os-release
167+
if [[ $VERSION_ID == 22.04 ]]; then
168+
sudo pip install docker 'requests<2.32.0'
169+
else
170+
sudo pip install docker 'requests<2.32.0' --break-system-packages
171+
fi
172+
168173
- name: Get Kolla tag
169174
id: write-kolla-tag
170175
run: echo "kolla-tag=${{ needs.generate-tag.outputs.openstack_release }}-${{ matrix.distro }}-${{ matrix.distro == 'rocky' && '9' || 'jammy' }}-${{ needs.generate-tag.outputs.datetime_tag }}" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)