ci(rpm): update RPM builder to avoid transient mirrors
This commit is contained in:
@@ -312,7 +312,13 @@ jobs:
|
|||||||
rockylinux:9 \
|
rockylinux:9 \
|
||||||
bash -lc "
|
bash -lc "
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
dnf install -y rpm-build git &&
|
# Avoid transient/out-of-sync mirrors while bootstrapping the RPM builder.
|
||||||
|
sed -i \
|
||||||
|
-e 's|^mirrorlist=|#mirrorlist=|' \
|
||||||
|
-e 's|^#baseurl=http://dl.rockylinux.org|baseurl=https://dl.rockylinux.org|' \
|
||||||
|
/etc/yum.repos.d/rocky*.repo
|
||||||
|
dnf clean all
|
||||||
|
dnf -y --setopt=timeout=60 --setopt=retries=5 install rpm-build git
|
||||||
curl -fsSL https://go.dev/dl/go\${GO_VER}.linux-amd64.tar.gz | tar -C /usr/local -xz &&
|
curl -fsSL https://go.dev/dl/go\${GO_VER}.linux-amd64.tar.gz | tar -C /usr/local -xz &&
|
||||||
export PATH=\$PATH:/usr/local/go/bin &&
|
export PATH=\$PATH:/usr/local/go/bin &&
|
||||||
mkdir -p ~/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS} &&
|
mkdir -p ~/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS} &&
|
||||||
|
|||||||
Reference in New Issue
Block a user