Skip to content

Commit

Permalink
ci/prow-entrypoint: Temporarily enable RHEL 9.4 repos with C10S
Browse files Browse the repository at this point in the history
  • Loading branch information
travier committed May 13, 2024
1 parent dbaecc7 commit 2336202
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions ci/prow-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,35 @@ prepare_repos() {

# Fetch the repos corresponding to the release we are building
case "${rhelver}" in
92|94)
94)
# RHCOS based on a specific version of RHEL
curl --fail -L "http://base-${ocpver_mut}-rhel${rhelver}.ocp.svc.cluster.local" -o "src/config/ocp.repo"
cat src/config/ocp.repo
;;
*)
# Assume C9S/SCOS if the version does not match known values for RHEL
9)
# CentOS Stream 9
# Temporary workaround until we have all packages for SCOS
# Keep this updated to the latest stable RHEL
curl --fail -L "http://base-${ocpver_mut}-rhel94.ocp.svc.cluster.local" -o "src/config/tmp.repo"
awk '/rhel-9.4-server-ose-4.16/,/^$/' "src/config/tmp.repo" > "src/config/ocp.repo"
cat src/config/ocp.repo
rm "src/config/tmp.repo"
;;
10)
# CentOS Stream 10
# Temporary workaround until we have all packages for SCOS
# Keep this updated to the latest stable RHEL
curl --fail -L "http://base-${ocpver_mut}-rhel94.ocp.svc.cluster.local" -o "src/config/tmp.repo"
awk '/rhel-9.4-appstream/,/^$/' "src/config/tmp.repo" > "src/config/ocp.repo"
awk '/rhel-9.4-fast-datapath/,/^$/' "src/config/tmp.repo" >> "src/config/ocp.repo"
awk '/rhel-9.4-server-ose-4.16/,/^$/' "src/config/tmp.repo" >> "src/config/ocp.repo"
cat src/config/ocp.repo
rm "src/config/tmp.repo"
;;
*)
echo "Unknown RHEL / CentOS Stream release"
exit 1
;;
esac
}

Expand Down

0 comments on commit 2336202

Please sign in to comment.