diff --git a/Makefile b/Makefile index 996a6d2..29f2834 100644 --- a/Makefile +++ b/Makefile @@ -2,12 +2,18 @@ SHELL := /bin/bash include .gitlab/Makefile -.PHONY: get-server -get-server: - @mkdir -p world - @echo 'eula=true' > world/eula.txt - @docker run -it -e SERVER_VERSION=1.17.1 -v $(PWD)/world:/downloads ducoterra/get-minecraft:latest - .PHONY: run run: docker-compose run --service-ports minecraft + +.PHONY: update-version +update-version: +ifdef VERSION + @echo $(VERSION) > VERSION + @yq e ".version = \"$(VERSION)\"" -i helm/Chart.yaml + @yq e ".appVersion = \"$(VERSION)\"" -i helm/Chart.yaml + @yq e ".services.*.image = \"$(IMAGE)\"" -i docker-compose.yaml + @yq e ".image = \"$(IMAGE)\"" -i helm/values.yaml +else + @echo 'VERSION not defined or VERSION file not found/empty' +endif