diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bbac7ec78f..8b17a2e1c0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -110,12 +110,32 @@ jobs: build_lin_rh7: name: Build CentOS 7 artifacts runs-on: ubuntu-latest - container: centos:7 + container: centos:7.9.2009 steps: - name: Prepare CentOS 7 tools run: | - sed -i 's/mirrorlist.centos.org/vault.centos.org/g' /etc/yum.repos.d/*.repo - cat /etc/yum.repos.d/*.repo + rm /etc/yum.repos.d/*.repo + echo '[base]' >/etc/yum.repos.d/CentOS-Base.repo + echo 'name=CentOS-$releasever - Base' >>/etc/yum.repos.d/CentOS-Base.repo + echo 'baseurl=http://vault.centos.org/7.9.2009/os/$basearch/' >>/etc/yum.repos.d/CentOS-Base.repo + echo 'gpgcheck=1' >>/etc/yum.repos.d/CentOS-Base.repo + echo 'gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7' >>/etc/yum.repos.d/CentOS-Base.repo + echo '[updates]' >>/etc/yum.repos.d/CentOS-Base.repo + echo 'name=CentOS-$releasever - Updates' >>/etc/yum.repos.d/CentOS-Base.repo + echo 'baseurl=http://vault.centos.org/7.9.2009/updates/$basearch/' >>/etc/yum.repos.d/CentOS-Base.repo + echo 'gpgcheck=1' >>/etc/yum.repos.d/CentOS-Base.repo + echo 'gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7' >>/etc/yum.repos.d/CentOS-Base.repo + echo '[extras]' >>/etc/yum.repos.d/CentOS-Base.repo + echo 'name=CentOS-$releasever - Extras' >>/etc/yum.repos.d/CentOS-Base.repo + echo 'baseurl=http://vault.centos.org/7.9.2009/extras/$basearch/' >>/etc/yum.repos.d/CentOS-Base.repo + echo 'gpgcheck=1' >>/etc/yum.repos.d/CentOS-Base.repo + echo 'gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7' >>/etc/yum.repos.d/CentOS-Base.repo + echo '[centosplus]' >>/etc/yum.repos.d/CentOS-Base.repo + echo 'name=CentOS-$releasever - Plus' >>/etc/yum.repos.d/CentOS-Base.repo + echo 'baseurl=http://vault.centos.org/7.9.2009/centosplus/$basearch/' >>/etc/yum.repos.d/CentOS-Base.repo + echo 'gpgcheck=1' >>/etc/yum.repos.d/CentOS-Base.repo + echo 'enabled=0' >>/etc/yum.repos.d/CentOS-Base.repo + echo 'gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7' >>/etc/yum.repos.d/CentOS-Base.repo yum install -y centos-release-scl epel-release yum install -y devtoolset-9 yum install -y wget git cmake3 automake libtool autoconf libstdc++-static glibc-static perl-IPC-Cmd