2022-06-28 17:08:41 +02:00
|
|
|
IMG_NAME=agate
|
|
|
|
REGISTRY=registry.monotremata.xyz
|
|
|
|
IMG=$(REGISTRY)/$(IMG_NAME)
|
|
|
|
PLATFORMS=linux/amd64
|
2021-02-17 18:06:08 +01:00
|
|
|
|
|
|
|
.PHONY: build build-nc
|
|
|
|
|
|
|
|
build: Dockerfile
|
2022-06-28 17:08:41 +02:00
|
|
|
docker build -t $(IMG) .
|
2021-02-17 18:06:08 +01:00
|
|
|
|
2022-06-28 17:08:41 +02:00
|
|
|
push: build
|
|
|
|
docker image push $(IMG)
|
|
|
|
|
|
|
|
buildx: Dockerfile
|
|
|
|
docker buildx build \
|
|
|
|
--platform $(PLATFORMS) \
|
|
|
|
--tag $(IMG) \
|
|
|
|
--push \
|
|
|
|
.
|