diff mbox series

[kvm-unit-tests,1/6] gitlab-ci: fix CentOS mirror list

Message ID 20240726070456.467533-2-npiggin@gmail.com (mailing list archive)
State New, archived
Headers show
Series Checking and CI improvements | expand

Commit Message

Nicholas Piggin July 26, 2024, 7:04 a.m. UTC
The CentOS repository URLs have changed, so the centos7 job no
longer runs. Apply a recipe from the internet that gets it going
again.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
---
 .gitlab-ci.yml | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e0eb85a94..823f03c3e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -300,6 +300,10 @@  build-centos7:
  extends: .outoftree_template
  image: centos:7
  before_script:
+# CentOS mirrors have changed, these sed scripts fixes the repos.
+ - 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 update -y
  - yum install -y make python qemu-kvm gcc
  script: