pleroma buildx
parent
643ea5a0f2
commit
8c3b80db39
|
@ -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 \
|
||||||
|
.
|
||||||
|
|
Loading…
Reference in New Issue