Skip to content

Commit 3b909c2

Browse files
authored
Update common Prometheus files (prometheus#349)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
1 parent 6382fd3 commit 3b909c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile.common

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ ifneq ($(shell which gotestsum),)
7878
endif
7979
endif
8080

81-
PROMU_VERSION ?= 0.6.0
81+
PROMU_VERSION ?= 0.7.0
8282
PROMU_URL := https://github.com/prometheus/promu/releases/download/v$(PROMU_VERSION)/promu-$(PROMU_VERSION).$(GO_BUILD_PLATFORM).tar.gz
8383

8484
GOLANGCI_LINT :=
@@ -245,10 +245,12 @@ common-docker-publish: $(PUBLISH_DOCKER_ARCHS)
245245
$(PUBLISH_DOCKER_ARCHS): common-docker-publish-%:
246246
docker push "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME)-linux-$*:$(DOCKER_IMAGE_TAG)"
247247

248+
DOCKER_MAJOR_VERSION_TAG = $(firstword $(subst ., ,$(shell cat VERSION)))
248249
.PHONY: common-docker-tag-latest $(TAG_DOCKER_ARCHS)
249250
common-docker-tag-latest: $(TAG_DOCKER_ARCHS)
250251
$(TAG_DOCKER_ARCHS): common-docker-tag-latest-%:
251252
docker tag "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME)-linux-$*:$(DOCKER_IMAGE_TAG)" "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME)-linux-$*:latest"
253+
docker tag "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME)-linux-$*:$(DOCKER_IMAGE_TAG)" "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME)-linux-$*:v$(DOCKER_MAJOR_VERSION_TAG)"
252254

253255
.PHONY: common-docker-manifest
254256
common-docker-manifest:

0 commit comments

Comments
 (0)