summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJames Mills <prologic@shortcircuit.net.au>2022-08-01 14:03:00 +1000
committerJames Mills <prologic@shortcircuit.net.au>2022-08-01 14:03:00 +1000
commitc011bbae0c52f60f9dcd2972fc4db845744356b0 (patch)
treec5ac74202e178774994e37e4d8cb91753cd1b0c9 /Makefile
parentcc036e0af183a1504546f796949d732ea5cfe045 (diff)
Fix image target to build multi-arch images to the Docker Hub
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 3a501dd..bab225d 100644
--- a/Makefile
+++ b/Makefile
@@ -54,11 +54,10 @@ install: build ## Install tube to $DESTDIR
ifeq ($(PUBLISH), 1)
image: generate ## Build the Docker image
- @docker build --build-arg VERSION="$(VERSION)" --build-arg COMMIT="$(COMMIT)" -t $(IMAGE):$(TAG) .
- @docker push $(IMAGE):$(TAG)
+ @docker buildx build --push --platform linux/arm64,linux/amd64 --tag $(IMAGE):$(TAG) --build-arg VERSION="$(VERSION)" --build-arg COMMIT="$(COMMIT)" .
else
image: generate
- @docker build --build-arg VERSION="$(VERSION)" --build-arg COMMIT="$(COMMIT)" -t $(IMAGE):$(TAG) .
+ @docker buildx build --platform linux/arm64,linux/amd64 --tag $(IMAGE):$(TAG) --build-arg VERSION="$(VERSION)" --build-arg COMMIT="$(COMMIT)" .
endif
release: generate ## Release a new version to Gitea