Skip to content
Snippets Groups Projects
Commit c964e799 authored by Julian Brost's avatar Julian Brost :unicorn:
Browse files

Merge branch 'docker-cache' into 'master'

Don't cache Docker layers

See merge request !6
parents 5ecc8488 ac76f4a4
No related branches found
No related tags found
1 merge request!6Don't cache Docker layers
Pipeline #24516 passed
......@@ -22,11 +22,10 @@ endif
all: pull build
pull:
docker pull "$(IMAGE):$(VARIANT)" || true
docker pull "$(FROM)"
build:
docker build --cache-from "$(IMAGE):$(VARIANT)" --tag "$(IMAGE):$(VARIANT)" .
docker build --tag "$(IMAGE):$(VARIANT)" .
ifdef IMAGE_EXTRA_TAG
docker tag "$(IMAGE):$(VARIANT)" "$(IMAGE):$(IMAGE_EXTRA_TAG)"
endif
......
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