From b2292aaa62160e2735f55052cb3f67156428038d Mon Sep 17 00:00:00 2001 From: Steve Durrheimer Date: Fri, 22 Apr 2016 21:47:55 +0200 Subject: [PATCH] Fix git branch with slash as docker tag --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 90c9c0daf..4c36f6809 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ pkgs = $(shell $(GO) list ./... | grep -v /vendor/) PREFIX ?= $(shell pwd) BIN_DIR ?= $(shell pwd) DOCKER_IMAGE_NAME ?= prometheus -DOCKER_IMAGE_TAG ?= $(shell git rev-parse --abbrev-ref HEAD) +DOCKER_IMAGE_TAG ?= $(subst /,-,$(shell git rev-parse --abbrev-ref HEAD)) ifdef DEBUG bindata_flags = -debug