We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d4f79cb + 4bce5ea commit faf377eCopy full SHA for faf377e
Makefile
@@ -2,7 +2,7 @@ FLAGS =
2
TESTENVVAR =
3
REGISTRY ?= gcr.io/k8s-staging-kube-state-metrics
4
TAG_PREFIX = v
5
-VERSION = $(shell gomplate -d config=./data.yaml --in '{{ (datasource "config").version }}')
+VERSION = $(shell grep '^version:' data.yaml | grep -oE "[0-9]+.[0-9]+.[0-9]+")
6
TAG ?= $(TAG_PREFIX)$(VERSION)
7
LATEST_RELEASE_BRANCH := release-$(shell echo $(VERSION) | grep -ohE "[0-9]+.[0-9]+")
8
BRANCH = $(strip $(shell git rev-parse --abbrev-ref HEAD))
0 commit comments