diff --git a/Makefile b/Makefile index 50c3cbda2840ef5b5dfdc6a2fb0107ce8024978d..d7331e9b1d01aac524d0a68212409cdbb35be5cf 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ PONOS_BRANCH=master COMMON_BRANCH=master IMAGE_TAG=registry.gitlab.com/arkindex/backend -.PHONY: all +.PHONY: all release all: clean build @@ -40,3 +40,10 @@ test-fixtures-restore: require-version: @if [ ! "$(version)" ]; then echo "Missing version to publish"; exit 1; fi @git rev-parse $(version) >/dev/null 2>&1 && (echo "Version $(version) already exists on local git repo !" && exit 1) || true + +release: + $(eval version:=$(shell cat VERSION)) + echo $(version) + git commit VERSION -m "Version $(version)" + git tag $(version) + git push origin master $(version)