Skip to content

Commit 2901597

Browse files
dustymabejlebon
authored andcommitted
ci/prow-rhcos: update for rhcos repo split
The repo was split such that going forward coreos/rhel-coreos-config will be used so let's update it so that we test again that repo for latest main branch of COSA.
1 parent 227103e commit 2901597

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ci/prow-rhcos.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,15 @@ set -xeuo pipefail
77
# rehearsal jobs: https://github.com/coreos/coreos-assembler/pull/2598
88
BRANCH=${OPENSHIFT_BUILD_REFERENCE:-${PULL_BASE_REF:-main}}
99
case ${BRANCH} in
10-
# For now; OpenShift hasn't done the master->main transition
11-
main|master) RHCOS_BRANCH=master;;
12-
rhcos-*) RHCOS_BRANCH=release-${BRANCH#rhcos-};;
10+
main) REPO=https://github.com/coreos/rhel-coreos-config; RHCOS_BRANCH=main;;
11+
rhcos-*) REPO=https://github.com/openshift/os; RHCOS_BRANCH=release-${BRANCH#rhcos-};;
1312
*) echo "Unhandled base ref: ${BRANCH}" 1>&2 && exit 1;;
1413
esac
1514

1615
# Prow jobs don't support adding emptydir today
1716
export COSA_SKIP_OVERLAY=1
1817
# Create a temporary cosa workdir
1918
cd "$(mktemp -d)"
20-
cosa init --transient -b "${RHCOS_BRANCH}" https://github.com/openshift/os
19+
cosa init --transient -b "${RHCOS_BRANCH}" "${REPO}"
2120
# Use a COSA specifc test entry point to focus on tests relevant for COSA
2221
exec src/config/ci/prow-entrypoint.sh rhcos-cosa-prow-pr-ci

0 commit comments

Comments
 (0)