Skip to content

Commit

Permalink
Use apt-spy2 to fix connectivity issues to azure.archive.ubuntu.com.
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Jan 13, 2023
1 parent 1a46e7a commit 2131bec
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/cleanbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
env:
COMPILER: ${{ matrix.compiler }}
TAR_CMD: tar_nosuid
GHA_OS: ${{ matrix.os }}

strategy:
matrix:
Expand Down Expand Up @@ -52,7 +53,7 @@ jobs:
submodules: 'recursive'

- name: apt_get_update
run: sudo -H DEBIAN_FRONTEND=noninteractive apt-get update
run: scripts/ft-apt-get-update.sh

- name: Workaround for tar not being able to access /var/cache/apt/archives
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/depsbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
env:
COMPILER: ${{ matrix.compiler }}
TAR_CMD: tar_nosuid
GHA_OS: ${{ matrix.os }}

strategy:
matrix:
Expand Down Expand Up @@ -52,7 +53,7 @@ jobs:
submodules: 'recursive'

- name: apt_get_update
run: sudo -H DEBIAN_FRONTEND=noninteractive apt-get update
run: scripts/ft-apt-get-update.sh

- name: Workaround for tar not being able to access /var/cache/apt/archives
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/functesting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
env:
COMPILER: ${{ matrix.compiler }}
TAR_CMD: tar_nosuid
GHA_OS: ${{ matrix.os }}

strategy:
matrix:
Expand All @@ -48,7 +49,7 @@ jobs:
submodules: 'recursive'

- name: apt_get_update
run: sudo -H DEBIAN_FRONTEND=noninteractive apt-get update
run: scripts/ft-apt-get-update.sh

- name: Get Date
id: get-date
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/glitching.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
env:
COMPILER: ${{ matrix.compiler }}
TAR_CMD: tar_nosuid
GHA_OS: ${{ matrix.os }}

strategy:
matrix:
Expand All @@ -37,7 +38,7 @@ jobs:
submodules: 'recursive'

- name: apt_get_update
run: sudo -H DEBIAN_FRONTEND=noninteractive apt-get update
run: scripts/ft-apt-get-update.sh

- name: Get Date
id: get-date
Expand Down
11 changes: 11 additions & 0 deletions scripts/ft-apt-get-update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

if [ "${GHA_OS}" == "ubuntu-18.04" ]
then
sudo gem install apt-spy2 -v 0.7.2
else
sudo gem install apt-spy2
fi
sudo apt-spy2 check
sudo apt-spy2 fix --commit
sudo -H DEBIAN_FRONTEND=noninteractive apt-get update

0 comments on commit 2131bec

Please sign in to comment.