File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed
Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments