Clean up getty Makefile to match others

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack 2017-06-08 11:02:48 +01:00
parent b5ae1260ab
commit 513f661458

View File

@ -7,15 +7,9 @@ DEPS=Dockerfile usr/bin/rungetty.sh
HASH?=$(shell git ls-tree HEAD -- ../$(notdir $(CURDIR)) | awk '{print $$3}') HASH?=$(shell git ls-tree HEAD -- ../$(notdir $(CURDIR)) | awk '{print $$3}')
hash:
@echo $(HASH)
tag: $(DEPS) tag: $(DEPS)
docker build --squash --no-cache --network=none -t $(ORG)/$(IMAGE):$(HASH) . docker build --squash --no-cache --network=none -t $(ORG)/$(IMAGE):$(HASH) .
test-tag:
docker tag $(ORG)/$(IMAGE):$(HASH) getty:test
push: tag push: tag
DOCKER_CONTENT_TRUST=1 docker pull $(ORG)/$(IMAGE):$(HASH) || \ DOCKER_CONTENT_TRUST=1 docker pull $(ORG)/$(IMAGE):$(HASH) || \
DOCKER_CONTENT_TRUST=1 docker push $(ORG)/$(IMAGE):$(HASH) DOCKER_CONTENT_TRUST=1 docker push $(ORG)/$(IMAGE):$(HASH)