File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,10 +47,18 @@ 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
59+
5060 - name : Install dos2unix
51- # using '-o Acquire::Retries=3' to workaround sporadic connectivity issues "Could not connect to azure.archive.ubuntu.com:80"
52- # see https://github.com/actions/virtual-environments/issues/675
53- run : sudo apt-get install -o Acquire::Retries=3 --no-install-recommends -y dos2unix
61+ run : sudo apt-get install --no-install-recommends -y dos2unix
5462
5563 - name : Build docker image
5664 shell : bash
You can’t perform that action at this time.
0 commit comments