diff --git a/agate/Dockerfile b/agate/Dockerfile index 3adf34e..d54905d 100644 --- a/agate/Dockerfile +++ b/agate/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.13 +FROM alpine:3.16 RUN apk add --no-cache --virtual .build-deps cargo && \ apk add --no-cache libgcc && \ diff --git a/agate/Makefile b/agate/Makefile index a95c60c..76e6865 100644 --- a/agate/Makefile +++ b/agate/Makefile @@ -1,10 +1,19 @@ -USERNAME = rilla -IMG_NAME = agate +IMG_NAME=agate +REGISTRY=registry.monotremata.xyz +IMG=$(REGISTRY)/$(IMG_NAME) +PLATFORMS=linux/amd64 .PHONY: build build-nc build: Dockerfile - docker build -t $(USERNAME)/$(IMG_NAME) . + docker build -t $(IMG) . -build-nc: Dockerfile - docker build --no-cache -t $(USERNAME)/$(IMG_NAME) . +push: build + docker image push $(IMG) + +buildx: Dockerfile + docker buildx build \ + --platform $(PLATFORMS) \ + --tag $(IMG) \ + --push \ + .