mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 19:05:37 +00:00
wireguard tools: use ORG pattern as in other makefiles
Signed-off-by: Tycho Andersen <tycho@docker.com>
This commit is contained in:
parent
a53e251908
commit
8c96d38ca3
@ -3,13 +3,14 @@ default: push
|
|||||||
|
|
||||||
IMAGE=wireguard-utils
|
IMAGE=wireguard-utils
|
||||||
DEPS=Dockerfile
|
DEPS=Dockerfile
|
||||||
|
ORG?=linuxkit
|
||||||
|
|
||||||
HASH?=$(shell git ls-tree HEAD -- ../$(notdir $(CURDIR)) | awk '{print $$3}')
|
HASH?=$(shell git ls-tree HEAD -- ../$(notdir $(CURDIR)) | awk '{print $$3}')
|
||||||
|
|
||||||
tag: $(DEPS)
|
tag: $(DEPS)
|
||||||
docker pull linuxkit/$(IMAGE):$(HASH) || \
|
docker pull $(ORG)/$(IMAGE):$(HASH) || \
|
||||||
docker build --no-cache -t linuxkit/$(IMAGE):$(HASH) .
|
docker build --no-cache -t $(ORG)/$(IMAGE):$(HASH) .
|
||||||
|
|
||||||
push: tag
|
push: tag
|
||||||
docker pull linuxkit/$(IMAGE):$(HASH) || \
|
docker pull $(ORG)/$(IMAGE):$(HASH) || \
|
||||||
docker push linuxkit/$(IMAGE):$(HASH)
|
docker push $(ORG)/$(IMAGE):$(HASH)
|
||||||
|
Loading…
Reference in New Issue
Block a user