Skip to content

Commit 6bcc144

Browse files
committed
add: DCAPE_VERSION, DCAPE_RELEASE
1 parent 718ae49 commit 6bcc144

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ DB_CONTAINER ?= $(DCAPE_TAG)-db-1
7070
CICD_HOST ?= cicd.$(DCAPE_DOMAIN)
7171

7272
ENFIST_URL ?= http://enfist:8080/rpc
73+
74+
# helpers, use: make echo-dcape-version
75+
DCAPE_VERSION ?= $(shell git describe --tags --always)
76+
DCAPE_RELEASE ?= $(shell git describe --tags --abbrev=0 --always)
77+
7378
#- ------------------------------------------------------------------------------
7479

7580
-include $(CFG_BAK)
@@ -93,7 +98,6 @@ DC_ENV_SOURCES = .dcape.env $(addsuffix /.env,$(APPS_DIRS))
9398
DC_ENV_ARG = $(addprefix --env-file ,$(DC_ENV_SOURCES))
9499
DC_INC = docker-compose.inc.yml
95100

96-
97101
include Makefile.dcape
98102

99103
.PHONY: $(CFG)

0 commit comments

Comments
 (0)