mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-11-13 06:10:02 +00:00
Also update to docker 17.05.0-ce and only install the docker CLI, not the rest. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
16 lines
403 B
Makefile
16 lines
403 B
Makefile
.PHONY: tag push
|
|
default: push
|
|
|
|
ORG?=linuxkit
|
|
IMAGE=test-docker-bench
|
|
DEPS=Dockerfile Makefile bench_runner.sh
|
|
|
|
HASH?=$(shell git ls-tree HEAD -- ../$(notdir $(CURDIR)) | awk '{print $$3}')
|
|
|
|
tag: $(DEPS)
|
|
docker build --squash --no-cache -t $(ORG)/$(IMAGE):$(HASH) .
|
|
|
|
push: tag
|
|
DOCKER_CONTENT_TRUST=1 docker pull $(ORG)/$(IMAGE):$(HASH) || \
|
|
DOCKER_CONTENT_TRUST=1 docker push $(ORG)/$(IMAGE):$(HASH)
|