Skip to content

Commit 2ea5a97

Browse files
authored
Merge pull request #553 from zwpaper/master
build: fallback version to based on date if no tags found
2 parents 6ee57f5 + 038350c commit 2ea5a97

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ RELEASE_CONTROLLER_IMAGE:=controller:$(RELEASE_VERSION)
3131
# v20201009-v0.18.800-46-g939c1c0 - automated build for a commit(not a tag) and also a local build
3232
# v20200521-v0.18.800 - automated build for a tag
3333
VERSION=$(shell echo $(RELEASE_VERSION) | awk -F - '{print $$2}')
34+
VERSION:=$(or $(VERSION),v0.0.$(shell date +%Y%m%d))
3435

3536
.PHONY: all
3637
all: build

0 commit comments

Comments
 (0)