common.mak 314 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
SWARM		:= -H 10.10.1.103:3376
REGISTRY	:= registry.videolan.org:5000
TAG			:= $(notdir $(CURDIR))

.PHONY: build push swarm

all:

build:
10
	docker build -t $(TAG):$(REVISION) .
11 12

push:
13 14
	docker tag $(TAG):$(REVISION) $(REGISTRY)/$(TAG)
	docker push $(REGISTRY)/$(TAG)
15 16

swarm:
17
	docker $(SWARM) pull $(REGISTRY)/$(TAG)