Skip to content

Commit

Permalink
cicd: fix centos7 repo urls
Browse files Browse the repository at this point in the history
  • Loading branch information
mstyushin committed Jul 9, 2024
1 parent c5434d8 commit 80c97c6
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions github-actions-tests/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,32 @@ REPO="sudo yum -y install https://download.postgresql.org/pub/repos/yum/reporpms
if [ "${OS}" = "centos:7" ]; then
# install and set up components missing in docker image (sudo, wget, bc, unzip)
yum clean all
cat << REPO > /etc/yum.repos.d/CentOS-Base.repo
[base]
name=CentOS-$releasever - Base
baseurl=http://vault.centos.org/7.9.2009/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
[updates]
name=CentOS-$releasever - Updates
baseurl=http://vault.centos.org/7.9.2009/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
[extras]
name=CentOS-$releasever - Extras
baseurl=http://vault.centos.org/7.9.2009/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://vault.centos.org/7.9.2009/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
REPO
yum update -y
yum install -y sudo
PACKAGE_MANAGER_INSTALL="sudo yum -y install"
Expand Down

0 comments on commit 80c97c6

Please sign in to comment.