Skip to content

Commit 1045975

Browse files
authored
Merge pull request #192 from ggiguash/fix-420-builds
Fix release procedure to use CentOS Stream9 for 4.20 and older versions
2 parents af1f773 + 0ff09b8 commit 1045975

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/release.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,33 @@ jobs:
4343
id: detect-okd-version
4444
uses: ./.github/actions/okd-version
4545

46+
- name: Determine bootc stream version
47+
id: set-bootc-image-tag
48+
shell: bash
49+
run: |
50+
set -euo pipefail
51+
set -x
52+
53+
ref="${{ inputs.ushift-gitref }}"
54+
tag="stream10"
55+
56+
# Prior to version 4.21, crio depends on containernetworking-plugins
57+
# which is not available in CentOS Stream 10
58+
if [[ "${ref}" =~ release-4\.([0-9]+) ]]; then
59+
yver="${BASH_REMATCH[1]}"
60+
if [ "${yver}" -lt 21 ]; then
61+
tag="stream9"
62+
fi
63+
fi
64+
echo "bootc-image-tag=${tag}" >> "${GITHUB_OUTPUT}"
65+
4666
- name: Run the build action
4767
uses: ./.github/actions/build
4868
with:
4969
ushift-gitref: ${{ inputs.ushift-gitref }}
5070
okd-version-tag: ${{ inputs.okd-version-tag != 'latest' && inputs.okd-version-tag || steps.detect-okd-version.outputs.okd-version-tag }}
5171
bootc-image-url: quay.io/centos-bootc/centos-bootc
52-
bootc-image-tag: stream10
72+
bootc-image-tag: ${{ steps.set-bootc-image-tag.outputs.bootc-image-tag }}
5373
build: ${{ inputs.build }}
5474

5575
# Test the local container image with the quick start and clean procedures

0 commit comments

Comments
 (0)