mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-13 22:52:43 +00:00
This goes with the experimental `docker` output format. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
16 lines
424 B
Makefile
16 lines
424 B
Makefile
.PHONY: tag push
|
|
default: push
|
|
|
|
ORG?=mobytest
|
|
IMAGE=init-container
|
|
DEPS=Dockerfile $(wildcard etc/init.d/*) $(wildcard bin/*)
|
|
|
|
HASH?=$(shell git ls-tree HEAD -- ../$(notdir $(CURDIR)) | awk '{print $$3}')
|
|
|
|
tag: $(DEPS)
|
|
docker build --no-cache --network=none -t $(ORG)/$(IMAGE):$(HASH) .
|
|
|
|
push: tag
|
|
DOCKER_CONTENT_TRUST=1 docker pull $(ORG)/$(IMAGE):$(HASH) || \
|
|
DOCKER_CONTENT_TRUST=1 docker push $(ORG)/$(IMAGE):$(HASH)
|