gitlab-ci: fix CentOS mirror list
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>
Acked-by: Andrew Jones <andrew.jones@linux.dev>
Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e0eb85a..823f03c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -300,6 +300,10 @@
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: