mirror of
https://github.com/vegardit/docker-openldap.git
synced 2026-05-21 12:14:16 +02:00
Workaround "Could not connect to azure.archive.ubuntu.com:80"
This commit is contained in:
parent
e4b20b76fd
commit
23c2ef6f84
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
|
|
@ -41,10 +41,18 @@ jobs:
|
|||
restore-keys: |
|
||||
${{ runner.os }}-trivy-
|
||||
|
||||
- name: Configure APT
|
||||
run: |
|
||||
# Workaround to avoid sporadic connectivity issues "Could not connect to azure.archive.ubuntu.com:80"
|
||||
# see https://github.com/actions/virtual-environments/issues/675
|
||||
echo 'APT::Acquire::Retries "3";' | sudo tee /etc/apt/apt.conf.d/80-acquire-retries
|
||||
if ! curl --max-time 3 --output /dev/null --silent --head --fail "http://azure.archive.ubuntu.com/ubuntu/dists/"; then
|
||||
sudo sed -i 's/azure\.//' /etc/apt/sources.list
|
||||
sudo apt-get update
|
||||
fi
|
||||
|
||||
- name: Install dos2unix
|
||||
# using '-o Acquire::Retries=3' to workaround sporadic connectivity issues "Could not connect to azure.archive.ubuntu.com:80"
|
||||
# see https://github.com/actions/virtual-environments/issues/675
|
||||
run: sudo apt-get install -o Acquire::Retries=3 --no-install-recommends -y dos2unix
|
||||
run: sudo apt-get install --no-install-recommends -y dos2unix
|
||||
|
||||
- name: Build docker image
|
||||
shell: bash
|
||||
|
|
|
|||
Loading…
Reference in a new issue