From b6cb8c60072c443788a783db8d2775697392cf7f Mon Sep 17 00:00:00 2001 From: Bastien Abadie <bastien@nextcairn.com> Date: Tue, 30 Jun 2020 15:17:18 +0200 Subject: [PATCH] Add simple release script --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 50c3cbda28..d7331e9b1d 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) -- GitLab