tests: Define COMPOSE_URL/COMPOSE_ID in a single place. Fix #1397
we don't want this defined multiple times in different places
This commit is contained in:
parent
cca084d5ce
commit
57cebbfaea
4 changed files with 15 additions and 11 deletions
|
|
@ -8,16 +8,7 @@ function greenprint {
|
|||
|
||||
ARCH=$(uname -m)
|
||||
|
||||
curl -L http://download.devel.redhat.com/rhel-8/nightly/RHEL-8/latest-RHEL-8.4/COMPOSE_ID > COMPOSE_ID
|
||||
COMPOSE_ID=$(cat 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-8/nightly/RHEL-8/$COMPOSE_ID}"
|
||||
|
||||
# in case COMPOSE_URL was defined from the outside refresh COMPOSE_ID file,
|
||||
# used for telegram messages in case of success/failure
|
||||
curl -L "$COMPOSE_URL/COMPOSE_ID" > COMPOSE_ID
|
||||
source ../tools/define-compose-url.sh
|
||||
|
||||
# Create a repository file for installing the osbuild-composer RPMs
|
||||
greenprint "📜 Generating dnf repository file"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue