From 387f4fcc21de599df87dab9c130594d521cab5de Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Tue, 28 Jun 2022 17:08:41 +0200 Subject: [PATCH] updated agate --- agate/Dockerfile | 2 +- agate/Makefile | 19 ++++++++++++++----- 2 files changed, 15 insertions(+), 6 deletions(-) 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 \ + .