Skip to content

Commit

Permalink
define-compose-url.sh: support RHEL-10 composes
Browse files Browse the repository at this point in the history
Signed-off-by: Tomáš Hozza <thozza@redhat.com>
  • Loading branch information
thozza authored and achilleas-k committed Jul 23, 2024
1 parent 58e2303 commit 02c3506
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/define-compose-url.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 02c3506

Please sign in to comment.