Add Makefile for building and pushing multi-arch Docker images
This commit is contained in:
parent
ed00e1150f
commit
b1621501a2
14
Makefile
Normal file
14
Makefile
Normal 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 .
|
Loading…
x
Reference in New Issue
Block a user