We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0407876 commit 9174813Copy full SHA for 9174813
Makefile
@@ -20,15 +20,17 @@ endif
20
21
# Check for current branch name
22
ifneq ($(strip $(GIT_BRANCH)),)
23
- TAG:=${TAG}${GIT_BRANCH}-
+ TAG:=${TAG}${GIT_BRANCH}
24
25
# replace invalid characters that might exist in the branch name
26
TAG:=$(shell echo ${TAG} | sed 's/[^a-zA-Z0-9]/-/g')
27
endif
28
29
# Check if the string does not contain "release"
30
ifeq (,$(findstring release,$(GIT_BRANCH)))
31
- TAG:=${TAG}${RELEASE_VER}
+ TAG:=${TAG}-${RELEASE_VER}
32
+else
33
+ TAG:=$(shell echo ${TAG} | sed 's/\(release-v[0-9]\)-\([0-9]*\)-\([0-9]*\)/\1.\2.\3/g')
34
35
36
.PHONY: print-global-variables
0 commit comments