From 9c3df703cc163253a647b34152a1e1a2919c89d9 Mon Sep 17 00:00:00 2001 From: Robert Stupp Date: Tue, 12 Nov 2024 11:35:31 +0100 Subject: [PATCH] CI: Use a non-rate-limiting docker.io mirror --- .github/actions/setup-runner/action.yml | 49 ++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup-runner/action.yml b/.github/actions/setup-runner/action.yml index 3ec30d90d56..4465e3acfc4 100644 --- a/.github/actions/setup-runner/action.yml +++ b/.github/actions/setup-runner/action.yml @@ -11,6 +11,7 @@ runs: - name: Memory report shell: bash run: | + echo "::group::Memory and disk" echo "Memory and swap:" free echo @@ -19,6 +20,7 @@ runs: echo "Available storage:" df -h echo + echo "::endgroup::" - name: Add 8G more swap if: ${{ inputs.more-memory != 'false' }} shell: bash @@ -31,6 +33,7 @@ runs: if: ${{ inputs.more-memory != 'false' }} shell: bash run: | + echo "::group::Memory and disk after swap enabled" echo "Memory report after adding more swap:" free echo @@ -39,7 +42,51 @@ runs: echo "Available storage:" df -h echo + echo "::endgroup::" - name: Update /etc/hosts shell: bash - run: echo -e "$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)\t$(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts + run: | + echo "::group::Contents of /etc/hosts" + echo -e "$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)\t$(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts + echo "::endgroup::" + + - name: Setup docker.io mirror + shell: bash + run: | + echo "::group::cat /etc/docker/daemon.json" + sudo cat /etc/docker/daemon.json || true + echo "::endgroup::" + + echo "::group::cat /etc/containers/registries.conf" + sudo cat /etc/containers/registries.conf || true + echo "::endgroup::" + + echo "::group::ls /etc/docker/" + sudo ls -al /etc/docker/ + sudo find /etc/docker/ + echo "::endgroup::" + + echo "::group::ls /etc/containers/" + sudo ls -al /etc/containers/ + sudo find /etc/containers/ + echo "::endgroup::" + + cat > docker-io-mirror.conf <