pleroma buildx

main
Ricard Illa 2022-06-28 12:40:36 +02:00
parent 643ea5a0f2
commit 8c3b80db39
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
1 changed files with 15 additions and 6 deletions

View File

@ -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 build: Dockerfile entrypoint.sh
docker build -t $(USERNAME)/$(IMG_NAME) . docker build -t $(IMG) .
build-nc: Dockerfile entrypoint.sh push: build
docker build --no-cache -t $(USERNAME)/$(IMG_NAME) . docker image push $(IMG)
buildx: Dockerfile entrypoint.sh
docker buildx build \
--platform $(PLATFORMS) \
--tag $(IMG) \
--push \
.