]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
CI package tests: Use Azure-hosted mirrors for better reliability (#3981)
authorTerry Burton <tez@terryburton.co.uk>
Mon, 22 Mar 2021 19:37:32 +0000 (19:37 +0000)
committerGitHub <noreply@github.com>
Mon, 22 Mar 2021 19:37:32 +0000 (19:37 +0000)
.github/workflows/ci-deb.yml

index 6eb82200c7157dba977a5f27916756f0b4b64d12..1bd2bdf2478c86de8e7a43dd37b5280772f04e81 100644 (file)
@@ -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