Add make docker-release

Add docker-release command which updates the image tag in the
docker-compose.yaml and runs a `make push`.
This commit is contained in:
ducoterra
2021-11-02 10:23:53 -04:00
parent 40a217b585
commit 3563c5c2aa

View File

@@ -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