feat(version): automatically use ci defined branch name
Cadoles/mktools/pipeline/head This commit looks good
Details
Cadoles/mktools/pipeline/head This commit looks good
Details
This commit is contained in:
parent
6eeb67261f
commit
021e0d13d8
|
@ -1,5 +1,5 @@
|
||||||
MKT_PROJECT_VERSION_TIMEZONE ?= Europe/Paris
|
MKT_PROJECT_VERSION_TIMEZONE ?= Europe/Paris
|
||||||
MKT_PROJECT_VERSION_BRANCH_NAME ?= $(shell git rev-parse --abbrev-ref HEAD)
|
MKT_PROJECT_VERSION_BRANCH_NAME ?= $(if $(CI), $(BRANCH_NAME), $(shell git rev-parse --abbrev-ref HEAD))
|
||||||
MKT_PROJECT_VERSION_CLEANED_BRANCH_NAME ?= $(shell echo $(MKT_PROJECT_VERSION_BRANCH_NAME) | tr '[:upper:]' '[:lower:]' | sed -e 's/[-_ ]//g')
|
MKT_PROJECT_VERSION_CLEANED_BRANCH_NAME ?= $(shell echo $(MKT_PROJECT_VERSION_BRANCH_NAME) | tr '[:upper:]' '[:lower:]' | sed -e 's/[-_ ]//g')
|
||||||
|
|
||||||
ifeq ($(MKT_PROJECT_VERSION_CLEANED_BRANCH_NAME),master)
|
ifeq ($(MKT_PROJECT_VERSION_CLEANED_BRANCH_NAME),master)
|
||||||
|
|
Loading…
Reference in New Issue