Skip to content

Commit

Permalink
Merge pull request #404 from aramase/buildx
Browse files Browse the repository at this point in the history
fix: windows image build with buildx
  • Loading branch information
k8s-ci-robot authored Dec 9, 2020
2 parents 38187b3 + 2e0d68d commit b6239d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ setup-kind:
.PHONY: e2e-container
e2e-container:
docker buildx rm container-builder || true
docker buildx create --use --name=container-builder
# only moby/buildkit:foreign-mediatype works on building Windows image now
# https://github.com/moby/buildkit/pull/1879
# Github issue: https://github.com/moby/buildkit/issues/1877
docker buildx create --use --name=container-builder --driver-opt image=moby/buildkit:v0.7.2
ifdef TEST_WINDOWS
docker buildx build --no-cache --build-arg LDFLAGS=$(LDFLAGS) -t $(IMAGE_TAG)-linux-amd64 -f docker/Dockerfile --platform="linux/amd64" --push .
docker buildx build --no-cache --build-arg LDFLAGS=$(LDFLAGS) -t $(IMAGE_TAG)-windows-1809-amd64 -f docker/windows.Dockerfile --platform="windows/amd64" --push .
Expand Down

0 comments on commit b6239d6

Please sign in to comment.