Skip to content

Commit fc4c365

Browse files
committed
configure fast apt mirror
1 parent 8f6bb64 commit fc4c365

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,8 @@ jobs:
4747
restore-keys: |
4848
${{ runner.os }}-trivy-
4949
50-
- name: Configure APT
51-
run: |
52-
# Workaround to avoid sporadic connectivity issues "Could not connect to azure.archive.ubuntu.com:80"
53-
# see https://github.com/actions/virtual-environments/issues/675
54-
echo 'APT::Acquire::Retries "3";' | sudo tee /etc/apt/apt.conf.d/80-acquire-retries
55-
if ! curl --max-time 3 --output /dev/null --silent --head --fail "http://azure.archive.ubuntu.com/ubuntu/dists/"; then
56-
sudo sed -i 's/azure\.//' /etc/apt/sources.list
57-
sudo apt-get update
58-
fi
50+
- name: Configure fast APT repository mirror
51+
uses: vegardit/fast-apt-mirror.sh@v1
5952

6053
- name: Install dos2unix
6154
run: sudo apt-get install --no-install-recommends -y dos2unix

0 commit comments

Comments
 (0)