Skip to content

Commit 4bce5ea

Browse files
committed
regression: make $VERSION 3rd-party independant
3rd-party dependencies cannot be installed pre-build since Makefile variables are initialized earlier than that. Signed-off-by: Pranshu Srivastava <[email protected]>
1 parent 5e332b3 commit 4bce5ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FLAGS =
22
TESTENVVAR =
33
REGISTRY ?= gcr.io/k8s-staging-kube-state-metrics
44
TAG_PREFIX = v
5-
VERSION = $(shell gomplate -d config=./data.yaml --in '{{ (datasource "config").version }}')
5+
VERSION = $(shell grep '^version:' data.yaml | grep -oE "[0-9]+.[0-9]+.[0-9]+")
66
TAG ?= $(TAG_PREFIX)$(VERSION)
77
LATEST_RELEASE_BRANCH := release-$(shell echo $(VERSION) | grep -ohE "[0-9]+.[0-9]+")
88
BRANCH = $(strip $(shell git rev-parse --abbrev-ref HEAD))

0 commit comments

Comments
 (0)