diff --git a/ci/prow-entrypoint.sh b/ci/prow-entrypoint.sh index 756e1f29..c02dd5a1 100755 --- a/ci/prow-entrypoint.sh +++ b/ci/prow-entrypoint.sh @@ -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 }