From 30d2a2296b1246ed952b0b41c12d9a01953a15e4 Mon Sep 17 00:00:00 2001 From: beat4ocean Date: Tue, 25 Mar 2025 19:53:21 +0800 Subject: [PATCH] [Improvement] update Centos CI --- .github/workflows/centos-ci.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/centos-ci.yml b/.github/workflows/centos-ci.yml index c1b2477e0..93cb9d660 100644 --- a/.github/workflows/centos-ci.yml +++ b/.github/workflows/centos-ci.yml @@ -11,7 +11,7 @@ jobs: build: runs-on: ubuntu-latest container: - image: quay.io/centos/centos:stream8 # 使用 CentOS Stream 8 容器 + image: almalinux:9 # 使用 almalinux 8 容器 strategy: matrix: @@ -28,9 +28,10 @@ jobs: - name: Reset DNF repositories run: | - cd /etc/yum.repos.d/ - sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* - sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* + sed -e 's|^mirrorlist=|#mirrorlist=|g' \ + -e 's|^# baseurl=https://repo.almalinux.org|baseurl=https://mirrors.aliyun.com|g' \ + /etc/yum.repos.d/almalinux*.repo + - name: Update DNF package index run: dnf makecache