Unstash rhel8nightly repo & json files

- even if they don't exist sometimes but ignore the errors
- make the nightly repository with a higher priority
- override rhel-8*.json files so that newly built images will
  also consume the nightly content
This commit is contained in:
Aleksandar Todorov 2020-11-17 15:14:16 +02:00 committed by Ondřej Budai
parent fb8493b4df
commit 4787fce3b7
4 changed files with 35 additions and 13 deletions

View file

@ -86,6 +86,12 @@ if [[ "$PROJECT" != "osbuild-composer" ]]; then
fi
fi
if [ -f "rhel8nightly.repo" ]; then
greenprint "Preparing repos for nightly build testing"
sudo mv rhel8nightly.repo /etc/yum.repos.d/
sudo rm -f /etc/yum.repos.d/osbuild*.repo
fi
greenprint "Installing test packages for ${PROJECT}"
# Note: installing only -tests to catch missing dependencies
retry sudo dnf -y install "${PROJECT}-tests"