ci: fix tagging
This commit is contained in:
parent
ef1911406e
commit
e7e9a0a647
|
@ -5,7 +5,9 @@ GIT_TAG := $(shell git describe --tags --match v*.*.* 2>/dev/null || git rev-par
|
|||
# append branch name to tag if NOT main nor master
|
||||
TAG := $(GIT_TAG)
|
||||
ifeq (,$(filter main master, $(GIT_BRANCH)))
|
||||
TAG = $(GIT_TAG)-$(GIT_BRANCH)
|
||||
ifneq ($(GIT_TAG), $(GIT_BRANCH))
|
||||
TAG = $(GIT_TAG)-$(GIT_BRANCH)
|
||||
endif
|
||||
endif
|
||||
|
||||
# optionally set by the caller
|
||||
|
|
Loading…
Reference in New Issue