From 1db622cab9e7d877cd68755efe523f9a035e50d6 Mon Sep 17 00:00:00 2001 From: Thomas VIAL Date: Tue, 12 Apr 2016 09:48:12 +0200 Subject: [PATCH] Added dynamic tag name from the current branch --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 95004eee..32cb86b6 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ -NAME = tvial/docker-mailserver:dovecot +BRANCH := $(shell git rev-parse --abbrev-ref HEAD) +NAME = tvial/docker-mailserver:$(BRANCH) # all: build run fixtures tests clean #all-no-build: run fixtures tests clean