From 02c35060b9fa1e6edf9dcd5e9985b5d222893fe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hozza?= Date: Fri, 19 Jul 2024 10:18:20 +0200 Subject: [PATCH] define-compose-url.sh: support RHEL-10 composes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tomáš Hozza --- tools/define-compose-url.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/define-compose-url.sh b/tools/define-compose-url.sh index d22b23f7e..18a595ad6 100755 --- a/tools/define-compose-url.sh +++ b/tools/define-compose-url.sh @@ -12,6 +12,12 @@ if [[ $ID == rhel && ${VERSION_ID%.*} == 9 ]]; then # default to a nightly tree but respect values passed from ENV so we can test rel-eng composes as well COMPOSE_URL="${COMPOSE_URL:-http://download.devel.redhat.com/rhel-9/nightly/RHEL-9/$COMPOSE_ID}" + +elif [[ $ID == rhel && ${VERSION_ID%.*} == 10 ]]; then + COMPOSE_ID=$(curl -L http://download.devel.redhat.com/rhel-10/nightly/RHEL-10-Public-Beta/latest-RHEL-"${VERSION_ID}"/COMPOSE_ID) + + # default to a nightly tree but respect values passed from ENV so we can test rel-eng composes as well + COMPOSE_URL="${COMPOSE_URL:-http://download.devel.redhat.com/rhel-10/nightly/RHEL-10-Public-Beta/$COMPOSE_ID}" fi # in case COMPOSE_URL was defined from the outside refresh COMPOSE_ID file,