From a7bf58f03d6ab7a5d66cc2c8d111f2e875251dfd 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 | 45 ++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup-runner/action.yml b/.github/actions/setup-runner/action.yml index 3ec30d90d56..eea35315f57 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,47 @@ 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: | + cat > docker-io-mirror.conf <