add update-version, remove get-server

This commit is contained in:
ducoterra
2021-12-13 12:18:21 -05:00
parent 4488fbf92f
commit b7762734d3

View File

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