From 6bcc14486b3afaa0aac0a5190047437228f982d1 Mon Sep 17 00:00:00 2001 From: Alexey Kovrizhkin Date: Tue, 1 Aug 2023 02:38:14 +0300 Subject: [PATCH] add: DCAPE_VERSION, DCAPE_RELEASE --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e62ff09..9a901f4 100644 --- a/Makefile +++ b/Makefile @@ -70,6 +70,11 @@ DB_CONTAINER ?= $(DCAPE_TAG)-db-1 CICD_HOST ?= cicd.$(DCAPE_DOMAIN) ENFIST_URL ?= http://enfist:8080/rpc + +# helpers, use: make echo-dcape-version +DCAPE_VERSION ?= $(shell git describe --tags --always) +DCAPE_RELEASE ?= $(shell git describe --tags --abbrev=0 --always) + #- ------------------------------------------------------------------------------ -include $(CFG_BAK) @@ -93,7 +98,6 @@ DC_ENV_SOURCES = .dcape.env $(addsuffix /.env,$(APPS_DIRS)) DC_ENV_ARG = $(addprefix --env-file ,$(DC_ENV_SOURCES)) DC_INC = docker-compose.inc.yml - include Makefile.dcape .PHONY: $(CFG)