Skip to content

Commit 5407e18

Browse files
committed
Fix: Remove deprecated mirror repos
Signed-off-by: Kevin Sandi <ksandi@contractor.linuxfoundation.org> Change-Id: I2d2b13958545a32216c3d2d82b108a06504890d3
1 parent 7c33d31 commit 5407e18

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/gerrit-verify.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ jobs:
120120
if: steps.changes.outputs.src == 'true'
121121
shell: bash
122122
run: |
123-
echo "${{ secrets.CLOUDS_ENV_B64 }}" | base64 --decode \
123+
echo "${{ secrets.CLOUD_ENV_B64 }}" | base64 --decode \
124124
> "${GITHUB_WORKSPACE}/cloud-env.pkrvars.hcl"
125125
- name: Create cloud.yaml file for openstack client
126126
id: create-cloud-yaml-file

provision/install-python.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ if is_ubuntu; then
104104
fi
105105

106106
if is_centos8; then
107+
echo "Clean up deprecated repos"
108+
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/CentOS-*.repo
109+
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/CentOS-*.repo
110+
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/CentOS-*.repo
111+
107112
echo "Install python38"
108113
dnf clean all
109114
dnf install -y python38

0 commit comments

Comments
 (0)