add update-version, remove get-server
This commit is contained in:
18
Makefile
18
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
|
||||
|
||||
Reference in New Issue
Block a user