1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00

fix: release (#6502)

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
Charles-Edouard Brétéché 2023-03-06 16:52:40 +01:00 committed by GitHub
parent 4d91d47934
commit 6f270a3883
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,7 @@ GIT_VERSION_DEV := $(shell git describe --match "[0-9].[0-9]-dev*")
GIT_BRANCH := $(shell git branch --show-current | cut -d ' ' -f2)
GIT_HASH := $(GIT_BRANCH)/$(shell git log -1 --pretty=format:"%H")
ifeq ($(GIT_BRANCH),)
GIT_BRANCH := $(shell git branch -a --contains $(git log -1 --format='%H') --list '*origin/release-*' | cut -d '/' -f3)
GIT_BRANCH := $(shell git branch -a --list '*origin/release-*' --contains $(git log -1 --format='%H') | cut -d '/' -f3)
endif
TIMESTAMP := $(shell date '+%Y-%m-%d_%I:%M:%S%p')
VERSION ?= $(shell git describe --match "v[0-9]*")