rpmbuild: run on centos-9
Also update terraform SHA and EPEL installation for mockbuild.
This commit is contained in:
parent
d8bfe13fdd
commit
89666714f4
3 changed files with 7 additions and 12 deletions
|
|
@ -33,6 +33,8 @@ RPM:
|
|||
- aws/fedora-35-aarch64
|
||||
- aws/centos-stream-8-x86_64
|
||||
- aws/centos-stream-8-aarch64
|
||||
- aws/centos-stream-9-x86_64
|
||||
- aws/centos-stream-9-aarch64
|
||||
- aws/rhel-8.5-ga-x86_64
|
||||
- aws/rhel-8.5-ga-aarch64
|
||||
- RUNNER:
|
||||
|
|
|
|||
|
|
@ -21,8 +21,8 @@ fi
|
|||
# Mock configuration file to use for building RPMs.
|
||||
MOCK_CONFIG="${ID}-${VERSION_ID%.*}-$(uname -m)"
|
||||
|
||||
if [[ $ID == centos && ${VERSION_ID%.*} == 8 ]]; then
|
||||
MOCK_CONFIG="centos-stream-8-$(uname -m)"
|
||||
if [[ $ID == centos ]]; then
|
||||
MOCK_CONFIG="centos-stream-${VERSION_ID%.*}-$(uname -m)"
|
||||
fi
|
||||
|
||||
# The commit this script operates on.
|
||||
|
|
@ -61,18 +61,11 @@ if curl --silent --fail --head --output /dev/null "${REPO_URL}/repodata/repomd.x
|
|||
fi
|
||||
|
||||
# Mock and s3cmd is only available in EPEL for RHEL.
|
||||
if [[ $ID == rhel || $ID == centos ]] && [[ ${VERSION_ID%.*} == 8 ]] && ! rpm -q epel-release; then
|
||||
if [[ $ID == rhel || $ID == centos ]] && ! rpm -q epel-release; then
|
||||
greenprint "📦 Setting up EPEL repository"
|
||||
curl -Ls --retry 5 --output /tmp/epel.rpm \
|
||||
https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
|
||||
https://dl.fedoraproject.org/pub/epel/epel-release-latest-${VERSION_ID%.*}.noarch.rpm
|
||||
sudo rpm -Uvh /tmp/epel.rpm
|
||||
elif [[ $ID == rhel || $ID == centos ]] && [[ ${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"
|
||||
fi
|
||||
|
||||
# Install requirements for building RPMs in mock.
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
4918c081e231ac8175f97bdfce06456fa3c32761
|
||||
7993024714534f70cd412e3181b2ab08082ecd86
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue