From 8c3b80db39d59f84252e43f7234bc504fb4543b2 Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Tue, 28 Jun 2022 12:40:36 +0200 Subject: [PATCH] pleroma buildx --- pleroma/Makefile | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/pleroma/Makefile b/pleroma/Makefile index e91e236..0c1b1d2 100644 --- a/pleroma/Makefile +++ b/pleroma/Makefile @@ -1,10 +1,19 @@ -USERNAME = rilla -IMG_NAME = pleroma +IMG_NAME=pleroma +REGISTRY=registry.monotremata.xyz +IMG=$(REGISTRY)/$(IMG_NAME) +PLATFORMS=linux/amd64 -.PHONY: build build-nc +.PHONY: build buildx push build: Dockerfile entrypoint.sh - docker build -t $(USERNAME)/$(IMG_NAME) . + docker build -t $(IMG) . -build-nc: Dockerfile entrypoint.sh - docker build --no-cache -t $(USERNAME)/$(IMG_NAME) . +push: build + docker image push $(IMG) + +buildx: Dockerfile entrypoint.sh + docker buildx build \ + --platform $(PLATFORMS) \ + --tag $(IMG) \ + --push \ + .