Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,16 @@ docker-build:
docker-push:
$(CONTAINER_TOOL) push $(REGISTRY)/$(ORG)/$(REPO):$(TAG)

.PHONY: docker-push-multiplatform
docker-push-multiplatform:
docker buildx build \
--platform=linux/amd64,linux/arm,linux/arm64,linux/ppc64le,linux/386 \
--tag $(REGISTRY)/$(ORG)/$(REPO):$(TAG) \
-o type=image \
--provenance=false \
-f Dockerfile \
--push \
.

load-kind: docker-build
kind load docker-image $(REGISTRY)/$(ORG)/$(REPO):$(TAG) --name=$(KIND_CLUSTER_NAME);
kind load docker-image $(REGISTRY)/$(ORG)/$(REPO):$(TAG) --name=$(KIND_CLUSTER_NAME);
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,13 @@ TAG=1.0 make docker-push;

```
make kind-load
```
```

## Multi-platform build

```
docker buildx create --use --name=qemu
docker buildx inspect --bootstrap

TAG=1.2 make docker-build-multi-platform;
```