feat(version): permit branch name overwrite
All checks were successful
Cadoles/mktools/pipeline/head This commit looks good
All checks were successful
Cadoles/mktools/pipeline/head This commit looks good
This commit is contained in:
parent
fa2dab537e
commit
1de7156649
@ -1,11 +1,12 @@
|
||||
MKT_PROJECT_BRANCH_NAME ?= $(shell git rev-parse --abbrev-ref HEAD | tr '[:upper:]' '[:lower:]' | sed -e 's/[-_ ]//g')
|
||||
MKT_PROJECT_BRANCH_NAME ?= $(shell git rev-parse --abbrev-ref HEAD)
|
||||
MKT_PROJECT_CLEANED_BRANCH_NAME ?= $(shell echo $(MKT_PROJECT_BRANCH_NAME) | tr '[:upper:]' '[:lower:]' | sed -e 's/[-_ ]//g')
|
||||
|
||||
ifeq ($(MKT_PROJECT_BRANCH_NAME),master)
|
||||
ifeq ($(MKT_PROJECT_CLEANED_BRANCH_NAME),master)
|
||||
MKT_PROJECT_VERSION_CHANNEL = stable
|
||||
else ifeq ($(MKT_PROJECT_BRANCH_NAME),staging)
|
||||
else ifeq ($(MKT_PROJECT_CLEANED_BRANCH_NAME),staging)
|
||||
MKT_PROJECT_VERSION_CHANNEL = testing
|
||||
else
|
||||
MKT_PROJECT_VERSION_CHANNEL = $(MKT_PROJECT_BRANCH_NAME)
|
||||
MKT_PROJECT_VERSION_CHANNEL = $(MKT_PROJECT_CLEANED_BRANCH_NAME)
|
||||
endif
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user