Skip to content

Commit 81ddb30

Browse files
committed
ci/prow-rhcos: handle rhel-* branches too
We've now performed a branching event for our `rhel-*` style branches. Handle that case here too when determining what REPO/BRANCH to use.
1 parent 4c7ed1e commit 81ddb30

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ci/prow-rhcos.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ set -xeuo pipefail
88
BRANCH=${OPENSHIFT_BUILD_REFERENCE:-${PULL_BASE_REF:-main}}
99
case ${BRANCH} in
1010
main) REPO=https://github.com/coreos/rhel-coreos-config; RHCOS_BRANCH=main;;
11+
rhel-*) REPO=https://github.com/coreos/rhel-coreos-config; RHCOS_BRANCH=${BRANCH};;
1112
rhcos-*) REPO=https://github.com/openshift/os; RHCOS_BRANCH=release-${BRANCH#rhcos-};;
1213
*) echo "Unhandled base ref: ${BRANCH}" 1>&2 && exit 1;;
1314
esac

0 commit comments

Comments
 (0)