From 8b8a8d7633465638f887d9e2172b8be899cc2da6 Mon Sep 17 00:00:00 2001 From: Brad Davidson Date: Tue, 16 Jul 2024 17:49:22 +0000 Subject: [PATCH] Use mirror.gcr.io as pull-through cache Signed-off-by: Brad Davidson --- .github/workflows/build.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 78acfd6bed0..ed73af5231a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,6 +22,12 @@ jobs: build-amd64: runs-on: runs-on,runner=8cpu-linux-x64,run-id=${{ github.run_id }},image=ubuntu22-full-x64,hdd=64 steps: + - name: Set up buildx + uses: docker/setup-buildx-action@v3 + with: + config-inline: | + [registry."docker.io"] + mirrors = ["mirror.gcr.io"] - name: Checkout code uses: actions/checkout@v4 - name: Install Dapper @@ -37,6 +43,12 @@ jobs: build-arm64: runs-on: runs-on,runner=8cpu-linux-arm64,run-id=${{ github.run_id }},image=ubuntu22-full-arm64,hdd=64 steps: + - name: Set up buildx + uses: docker/setup-buildx-action@v3 + with: + config-inline: | + [registry."docker.io"] + mirrors = ["mirror.gcr.io"] - name: Checkout code uses: actions/checkout@v4 - name: Install Dapper @@ -46,4 +58,4 @@ jobs: - name: Build run: | dapper -f Dockerfile --target dapper make dapper-ci - \ No newline at end of file +