Skip to content

Commit 8fc5f75

Browse files
committed
fix: fix the publish pipeline by using mcr image
1 parent 3022641 commit 8fc5f75

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ run-memberagent: manifests generate fmt vet ## Run a controllers from your host.
266266
OUTPUT_TYPE ?= type=registry
267267
BUILDX_BUILDER_NAME ?= img-builder
268268
QEMU_VERSION ?= 7.2.0-1
269+
BUILDKIT_VERSION ?= 0.11.6-2
269270

270271
.PHONY: push
271272
push:
@@ -275,7 +276,8 @@ push:
275276
docker-buildx-builder:
276277
@if ! docker buildx ls | grep $(BUILDX_BUILDER_NAME); then \
277278
docker run --rm --privileged mcr.microsoft.com/mirror/docker/multiarch/qemu-user-static:$(QEMU_VERSION) --reset -p yes; \
278-
docker buildx create --name $(BUILDX_BUILDER_NAME) --use; \
279+
# By default, it will pull image moby/buildkit:buildx-stable-1 and hit the too many requests error.
280+
docker buildx create --driver-opt image=mcr.microsoft.com/oss/moby/buildkit:$(BUILDKIT_VERSION) --name $(BUILDX_BUILDER_NAME) --use; \
279281
docker buildx inspect $(BUILDX_BUILDER_NAME) --bootstrap; \
280282
fi
281283

0 commit comments

Comments
 (0)