From d3c1e9e9d60614a97c9286ca6d171f11976cb20d Mon Sep 17 00:00:00 2001 From: Hiroshi Hatake Date: Mon, 22 Jul 2024 21:18:39 +0900 Subject: [PATCH] workflows: centos-7: Fix CentOS 7 workflow error Signed-off-by: Hiroshi Hatake --- .github/workflows/build.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index b975bf7..3a50249 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -39,6 +39,8 @@ jobs: steps: - name: Set up base image dependencies run: | + sed -i -e "s/^mirrorlist=http:\/\/mirrorlist.centos.org/#mirrorlist=http:\/\/mirrorlist.centos.org/g" /etc/yum.repos.d/CentOS-Base.repo && \ + sed -i -e "s/^#baseurl=http:\/\/mirror.centos.org/baseurl=http:\/\/vault.centos.org/g" /etc/yum.repos.d/CentOS-Base.repo && \ yum -y update && \ yum install -y ca-certificates cmake gcc gcc-c++ git make wget && \ wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \