Skip to content

Commit

Permalink
Fix Cirrus CI
Browse files Browse the repository at this point in the history
  • Loading branch information
adonis0147 committed Jul 10, 2024
1 parent 47246c6 commit 75008ac
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,19 @@ build_packages_task:
sed -i '/function install_packages/,/^}/ s/zsh//' devel/scripts/install.sh
script: |
cat >Dockerfile <<EOF
FROM centos:centos7
if [[ "$(uname -m)" == 'x86_64' ]]; then
cat >Dockerfile <<EOF
FROM centos:7
RUN sed -i -e 's|mirrorlist=|#mirrorlist=|' -e 's|#baseurl=http://mirror.centos.org/centos/\$releasever|baseurl=https://vault.centos.org/7.9.2009|' /etc/yum.repos.d/CentOS-Base.repo
EOF
else
cat >Dockerfile <<EOF
FROM centos:7
RUN sed -i -e 's|mirrorlist=|#mirrorlist=|' -e 's|#baseurl=http://mirror.centos.org/altarch|baseurl=https://vault.centos.org/altarch|' /etc/yum.repos.d/CentOS-Base.repo
EOF
fi
cat >>Dockerfile <<EOF
RUN yum install -y xz file make gettext texinfo
RUN mkdir /devel-env
Expand Down

0 comments on commit 75008ac

Please sign in to comment.