Skip to content

Commit 0eec2e3

Browse files
committed
remove invalid characters from branch name an replace with -
Signed-off-by: Kevin <kpostlet@redhat.com>
1 parent 38b4d07 commit 0eec2e3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ endif
1919
# Check for current branch name
2020
ifneq ($(strip $(GIT_BRANCH)),)
2121
TAG:=${TAG}${GIT_BRANCH}-
22+
23+
# replace invalid characters that might exist in the branch name
24+
TAG:=$(shell echo ${TAG} | sed 's/[^a-zA-Z0-9]/-/g')
2225
endif
2326
TAG:=${TAG}${RELEASE_VER}
2427

0 commit comments

Comments
 (0)