ci: add workaround for missing redhat.repo in EC2

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
Ondřej Budai 2021-07-13 10:49:58 +02:00 committed by Ondřej Budai
parent e64cc2effe
commit 3991827f68

View file

@ -69,6 +69,9 @@ if [[ "$ID" == rhel ]] && sudo subscription-manager status; then
# If this script runs on subscribed RHEL, install content built using CDN
# repositories.
DISTRO_VERSION=rhel-${VERSION_ID%.*}-cdn
# workaround for https://github.com/osbuild/osbuild/issues/717
sudo subscription-manager config --rhsm.manage_repos=1
fi
greenprint "Enabling fastestmirror to speed up dnf 🏎️"