diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..45b6861 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +# Makefile for building and pushing multi-arch Docker images + +IMAGE_REPO = git.coopcloud.tech/wiki-cafe/member-console +DATE_TAG = $(shell date -u +%Y-%m-%dT%H%M%SZ) +PLATFORMS = linux/arm64,linux/amd64 + +.PHONY: docker-push + +docker-push: + docker buildx build \ + --platform $(PLATFORMS) \ + -t $(IMAGE_REPO):latest \ + -t $(IMAGE_REPO):$(DATE_TAG) \ + --push .