Skip to content

Commit a7e5578

Browse files
Use registry mirror with docker GitHub Action:
This should alleviate the DockerHub rate limiting issues. Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
1 parent ab5d6f0 commit a7e5578

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/build-all-matrix.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ jobs:
7878

7979
- name: Set up Docker Buildx
8080
uses: docker/setup-buildx-action@v3
81+
with:
82+
buildkitd-config-inline: |
83+
[registry."docker.io"]
84+
mirrors = ["mirror.gcr.io"]
8185
8286
- name: Docker Login to quay.io
8387
if: ${{ env.REGISTRY == 'quay.io' && github.ref == 'refs/heads/main' }}
@@ -119,6 +123,10 @@ jobs:
119123

120124
- name: Set up Docker Buildx # nb: no need for qemu here, kernels are cross-compiled, instead of the compilation being emulated
121125
uses: docker/setup-buildx-action@v3
126+
with:
127+
buildkitd-config-inline: |
128+
[registry."docker.io"]
129+
mirrors = ["mirror.gcr.io"]
122130
123131
- name: Docker Login to quay.io
124132
if: ${{ env.REGISTRY == 'quay.io' && github.ref == 'refs/heads/main' }}
@@ -159,6 +167,10 @@ jobs:
159167

160168
- name: Set up Docker Buildx # nb: no need for qemu here, kernels are cross-compiled, instead of the compilation being emulated
161169
uses: docker/setup-buildx-action@v3
170+
with:
171+
buildkitd-config-inline: |
172+
[registry."docker.io"]
173+
mirrors = ["mirror.gcr.io"]
162174
163175
- name: Docker Login to DockerHub # read-only token, required to be able to pull all the linuxkit pkgs without getting rate limited.
164176
if: ${{ env.LOGIN_TO_DOCKERHUB == 'yes' && github.ref == 'refs/heads/main' }}

0 commit comments

Comments
 (0)