diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 606c809495b99..c63ea41941389 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -115,6 +115,14 @@ jobs: options: --privileged steps: + - name: modify centos repo + if: matrix.package == 'rpm' && matrix.image == 'centos:7' + sed -i 's|^mirrorlist=|#mirrorlist=|g' /etc/yum.repos.d/CentOS-Base.repo + sed -i 's|^#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Base.repo + sed -i 's|$releasever|7.9.2009|g' /etc/yum.repos.d/CentOS-Base.repo + yum clean all + yum makecache + - name: Early Rpm Setup if: matrix.package == 'rpm' && matrix.image != '' run: |