Skip to content

Commit 2e0d68d

Browse files
committed
fix: windows image build with buildx
1 parent 5fd00e4 commit 2e0d68d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,10 @@ setup-kind:
118118
.PHONY: e2e-container
119119
e2e-container:
120120
docker buildx rm container-builder || true
121-
docker buildx create --use --name=container-builder
121+
# only moby/buildkit:foreign-mediatype works on building Windows image now
122+
# https://github.com/moby/buildkit/pull/1879
123+
# Github issue: https://github.com/moby/buildkit/issues/1877
124+
docker buildx create --use --name=container-builder --driver-opt image=moby/buildkit:v0.7.2
122125
ifdef TEST_WINDOWS
123126
docker buildx build --no-cache --build-arg LDFLAGS=$(LDFLAGS) -t $(IMAGE_TAG)-linux-amd64 -f docker/Dockerfile --platform="linux/amd64" --push .
124127
docker buildx build --no-cache --build-arg LDFLAGS=$(LDFLAGS) -t $(IMAGE_TAG)-windows-1809-amd64 -f docker/windows.Dockerfile --platform="windows/amd64" --push .

0 commit comments

Comments
 (0)