Files
the-1122-pack/Makefile
2022-02-04 21:25:39 -05:00

20 lines
491 B
Makefile
Executable File

SHELL := /bin/bash
include .gitlab/Makefile
.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