ci/deploy: use public EPEL-9

This commit is contained in:
Jakub Rusz 2022-02-25 14:20:09 +01:00 committed by Ondřej Budai
parent e71a91f5d0
commit 8f430733c1

View file

@ -42,16 +42,9 @@ gpgcheck=0
priority=10
EOF
if [[ $ID == rhel ]] && [[ ${VERSION_ID%.*} == 8 ]]; then
if [[ $ID == rhel || $ID == centos ]] && ! rpm -q epel-release; then
# Set up EPEL repository (for ansible and koji)
sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
elif [[ $ID == rhel ]] && [[ ${VERSION_ID%.*} == 9 ]]; then
# we have our own small epel for EL9, let's install it
# install Red Hat certificate, otherwise dnf copr fails
curl -LO --insecure https://hdn.corp.redhat.com/rhel8-csb/RPMS/noarch/redhat-internal-cert-install-0.1-23.el7.csb.noarch.rpm
sudo dnf install -y ./redhat-internal-cert-install-0.1-23.el7.csb.noarch.rpm dnf-plugins-core
sudo dnf copr enable -y copr.devel.redhat.com/osbuild-team/epel-el9 "rhel-9.dev-$ARCH"
sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-${VERSION_ID%.*}.noarch.rpm
fi
# Install the Image Builder packages.