Skip to content

Commit

Permalink
fix(CI): CentOS 源过期的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
MemoryShadow authored Dec 29, 2024
1 parent 4e1bbaf commit de16fc4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ jobs:
echo $PWD
pwd_path=$PWD
docker run -itd -v ${pwd_path}:${pwd_path} --name centos7Instance --net="host" docker.io/centos:7.9.2009 /bin/bash
docker exec -t centos7Instance curl -so /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
echo yum update...
docker exec -t centos7Instance bash -c "yum install -y http://mirror.math.princeton.edu/pub/epel/7/x86_64/Packages/a/aria2-1.34.0-5.el7.x86_64.rpm > /dev/null; \
yum install -y ${pwd_path}/packages/${{ needs.build.outputs.RPM_AMD64 }} | grep 'minecraftctl' | grep -v '\[#* *\]'; \
Expand Down

0 comments on commit de16fc4

Please sign in to comment.