ci: Update centos:7 to use vault repos

This commit is contained in:
Taiki Endo
2024-07-04 10:45:59 +09:00
parent a4f3fb44a5
commit 509a1e8a43
2 changed files with 11 additions and 0 deletions

View File

@@ -140,6 +140,14 @@ jobs:
timeout-minutes: 60
container: ${{ matrix.container }}
steps:
- name: Install requirements (centos)
run: |
set -eEuxo pipefail
# https://github.com/rust-lang/rust/pull/126352
sed -i /etc/yum.repos.d/*.repo -e 's!^mirrorlist!#mirrorlist!' \
-e 's!^#baseurl=http://mirror.centos.org/!baseurl=https://vault.centos.org/!'
sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf
if: startsWith(matrix.container, 'centos')
- name: Install requirements (alpine)
run: apk --no-cache add bash
shell: sh