Skip to content

Commit faf377e

Browse files
authored
Merge pull request #2572 from rexagod/fix-v
fix: make `$VERSION` 3rd-party independant
2 parents d4f79cb + 4bce5ea commit faf377e

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)