From: Terry Burton Date: Mon, 22 Mar 2021 19:37:32 +0000 (+0000) Subject: CI package tests: Use Azure-hosted mirrors for better reliability (#3981) X-Git-Tag: release_3_0_22~149 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3da0ec78713a19c2d15850a092785801af32431;p=thirdparty%2Ffreeradius-server.git CI package tests: Use Azure-hosted mirrors for better reliability (#3981) --- diff --git a/.github/workflows/ci-deb.yml b/.github/workflows/ci-deb.yml index 6eb82200c7..1bd2bdf247 100644 --- a/.github/workflows/ci-deb.yml +++ b/.github/workflows/ci-deb.yml @@ -34,12 +34,14 @@ jobs: - name: Package manager performance improvements run: | + sed -i 's/deb.debian.org/debian-archive.trafficmanager.net/' /etc/apt/sources.list + sed -i 's/archive.ubuntu.com/azure.archive.ubuntu.com/' /etc/apt/sources.list echo force-unsafe-io > /etc/dpkg/dpkg.cfg.d/02speedup echo 'man-db man-db/auto-update boolean false' | debconf-set-selections + apt-get update - name: Install recent git run: | - apt-get update apt-get install -y --no-install-recommends git-core ca-certificates - uses: actions/checkout@v2 @@ -119,12 +121,6 @@ jobs: steps: - # For pkill - - name: Install procps - run: | - apt-get update - apt-get install -y --no-install-recommends procps - - name: Load DEBs uses: actions/download-artifact@v2 with: @@ -132,12 +128,20 @@ jobs: - name: Package manager performance improvements run: | + sed -i 's/deb.debian.org/debian-archive.trafficmanager.net/' /etc/apt/sources.list + sed -i 's/archive.ubuntu.com/azure.archive.ubuntu.com/' /etc/apt/sources.list echo force-unsafe-io > /etc/dpkg/dpkg.cfg.d/02speedup echo 'man-db man-db/auto-update boolean false' | debconf-set-selections + apt-get update - - name: Install DEBs + # For pkill + - name: Install procps run: | apt-get update + apt-get install -y --no-install-recommends procps + + - name: Install DEBs + run: | find . -maxdepth 1 -name '*.deb' | xargs apt-get install -y --no-install-recommends - name: Config test