Add Makefile for building and pushing multi-arch Docker images

This commit is contained in:
Christian Galo 2025-05-18 18:07:03 -05:00
parent ed00e1150f
commit b1621501a2

14
Makefile Normal file
View File

@ -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 .