Skip to content
Snippets Groups Projects
Commit 6d4f5061 authored by Markus Frosch's avatar Markus Frosch
Browse files

Makefile: Remove selective cache

parent 58c08ce2
No related branches found
No related tags found
No related merge requests found
......@@ -14,10 +14,6 @@ FROM := $(shell grep FROM Dockerfile | cut -d" " -f2)
VERSION := $(shell basename `pwd`)
IMAGE := $(IMAGE_PREFIX)$(VERSION):$(VARIANT)
ifeq (${DOCKER_ALL_CACHE},)
DOCKER_CACHE := --cache-from "$(IMAGE)"
endif
all: pull build
pull:
......@@ -25,7 +21,7 @@ pull:
docker pull "$(FROM)"
build:
docker build $(DOCKER_CACHE) --tag "$(IMAGE)" .
docker build --cache-from "$(IMAGE)" --tag "$(IMAGE)" .
push:
docker push "$(IMAGE)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment