From 3563c5c2aa0100574f505b7dda324b5a52ea34cf Mon Sep 17 00:00:00 2001 From: ducoterra Date: Tue, 2 Nov 2021 10:23:53 -0400 Subject: [PATCH] Add make docker-release Add docker-release command which updates the image tag in the docker-compose.yaml and runs a `make push`. --- make/docker.makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/make/docker.makefile b/make/docker.makefile index 2c40944..23e4a52 100644 --- a/make/docker.makefile +++ b/make/docker.makefile @@ -22,3 +22,8 @@ push: @make buildx-context docker buildx build --platform linux/amd64,linux/arm64 --push . -t $(IMAGE) @docker buildx build --platform linux/amd64,linux/arm64 --push . -t $(IMAGE_LATEST) + +.PHONY: docker-release +docker-release: + @yq e ".services.minecraft.image = \"$(IMAGE)\"" -i docker-compose.yaml + @make push