Files
linuxkit/projects/wireguard/tools/Makefile
Tycho Andersen 8c96d38ca3 wireguard tools: use ORG pattern as in other makefiles
Signed-off-by: Tycho Andersen <tycho@docker.com>
2017-05-26 15:45:41 -06:00

17 lines
363 B
Makefile

.PHONY: tag push
default: push
IMAGE=wireguard-utils
DEPS=Dockerfile
ORG?=linuxkit
HASH?=$(shell git ls-tree HEAD -- ../$(notdir $(CURDIR)) | awk '{print $$3}')
tag: $(DEPS)
docker pull $(ORG)/$(IMAGE):$(HASH) || \
docker build --no-cache -t $(ORG)/$(IMAGE):$(HASH) .
push: tag
docker pull $(ORG)/$(IMAGE):$(HASH) || \
docker push $(ORG)/$(IMAGE):$(HASH)