From 44c9f32d8104c84c7db9126bd7551d2ff1d8a3b9 Mon Sep 17 00:00:00 2001 From: Aveen Ismail Date: Fri, 27 Sep 2024 17:28:31 +0200 Subject: [PATCH] Githubactions: Centos7: Replace repo mirror --- .github/workflows/build_centos.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build_centos.yml b/.github/workflows/build_centos.yml index 8892bc74..68cdd470 100644 --- a/.github/workflows/build_centos.yml +++ b/.github/workflows/build_centos.yml @@ -33,6 +33,13 @@ jobs: cat /etc/yum.repos.d/CentOS-Base.repo echo "--------------" cat /etc/yum.repos.d/CentOS-Vault.repo + + sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo + sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo + sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo + + yum -y update + yum -y install epel-release - name: clone the Yubico/yubihsm-shell repository run: |