From 71d82a3c1fa3983d8bdf6ec5833a495255823cb2 Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Thu, 4 Jul 2024 09:44:08 +0200 Subject: [PATCH] fix(ci): use vault.centos.org for centos:7 CI build. Signed-off-by: Federico Di Pierro --- .github/workflows/reusable_build_packages.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/reusable_build_packages.yaml b/.github/workflows/reusable_build_packages.yaml index a6db7492e9c..14513810065 100644 --- a/.github/workflows/reusable_build_packages.yaml +++ b/.github/workflows/reusable_build_packages.yaml @@ -57,7 +57,18 @@ jobs: # Always install deps before invoking checkout action, to properly perform a full clone. - name: Install build dependencies run: | + # fix broken mirrors + sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo + sed -i s/^#.*baseurl=http/baseurl=https/g /etc/yum.repos.d/*.repo + sed -i s/^mirrorlist=http/#mirrorlist=https/g /etc/yum.repos.d/*.repo + yum -y install centos-release-scl + + # fix broken mirrors (again) + sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo + sed -i s/^#.*baseurl=http/baseurl=https/g /etc/yum.repos.d/*.repo + sed -i s/^mirrorlist=http/#mirrorlist=https/g /etc/yum.repos.d/*.repo + yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ source /opt/rh/devtoolset-9/enable yum install -y wget git make m4 rpm-build elfutils-libelf-devel perl-IPC-Cmd devtoolset-9-libasan-devel devtoolset-9-libubsan-devel