Skip to content

Commit 509a1e8

Browse files
committed
ci: Update centos:7 to use vault repos
1 parent a4f3fb4 commit 509a1e8

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/.cspell/project-dictionary.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,15 @@ endgroup
1515
epel
1616
espup
1717
etag
18+
fastestmirror
1819
grcov
1920
knope
2021
linkcheck
2122
mdbook
2223
microdnf
24+
mirrorlist
2325
nextest
26+
pluginconf
2427
protoc
2528
pubkey
2629
pwsh

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,14 @@ jobs:
140140
timeout-minutes: 60
141141
container: ${{ matrix.container }}
142142
steps:
143+
- name: Install requirements (centos)
144+
run: |
145+
set -eEuxo pipefail
146+
# https://github.com/rust-lang/rust/pull/126352
147+
sed -i /etc/yum.repos.d/*.repo -e 's!^mirrorlist!#mirrorlist!' \
148+
-e 's!^#baseurl=http://mirror.centos.org/!baseurl=https://vault.centos.org/!'
149+
sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf
150+
if: startsWith(matrix.container, 'centos')
143151
- name: Install requirements (alpine)
144152
run: apk --no-cache add bash
145153
shell: sh

0 commit comments

Comments
 (0)