Commit 964d021b authored by Konstantin Pavlov's avatar Konstantin Pavlov

Added common makefile rules.

parent b89462ae
SWARM := -H 10.10.1.103:3376
REGISTRY := registry.videolan.org:5000
TAG := $(notdir $(CURDIR))
.PHONY: build push swarm
all:
build:
docker build -t $(TAG):latest .
push:
docker tag $(TAG):latest $(REGISTRY)/$(TAG):latest
docker push $(REGISTRY)/$(TAG):latest
swarm:
docker $(SWARM) pull $(REGISTRY)/$(TAG):latest
......@@ -25,8 +25,10 @@ echo "Changed late images: '$LATE'"
for b in $BASE; do
make -C $b push
make -C $b swarm
done
for l in $LATE; do
make -C $l push
make -C $l swarm
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment