Added a build using cache for testing purpose

This commit is contained in:
Thomas VIAL 2016-04-13 21:43:25 +02:00
parent 545922fefa
commit bfa8a41712

View file

@ -1,9 +1,12 @@
BRANCH := $(shell git rev-parse --abbrev-ref HEAD) BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
NAME = tvial/docker-mailserver:$(BRANCH) NAME = tvial/docker-mailserver:$(BRANCH)
# all: build run fixtures tests clean # all: build-no-cache run fixtures tests clean
#all-no-build: run fixtures tests clean #all-no-build: run fixtures tests clean
all: build all: build-no-cache
build-no-cache:
docker build --no-cache -t $(NAME) .
build: build:
docker build --no-cache -t $(NAME) . docker build --no-cache -t $(NAME) .