Commit aa6aefb3 authored by Konstantin Pavlov's avatar Konstantin Pavlov

An attempt to push currently built revision to the registry.

Hopefully it will also be marked as latest (it seems so at least when
ran manually) on the registry itself.
parent 40bdd9eb
......@@ -7,11 +7,11 @@ TAG := $(notdir $(CURDIR))
all:
build:
docker build -t $(TAG):latest .
docker build -t $(TAG):$(REVISION) .
push:
docker tag $(TAG):latest $(REGISTRY)/$(TAG):latest
docker push $(REGISTRY)/$(TAG):latest
docker tag $(TAG):$(REVISION) $(REGISTRY)/$(TAG)
docker push $(REGISTRY)/$(TAG)
swarm:
docker $(SWARM) pull $(REGISTRY)/$(TAG):latest
docker $(SWARM) pull $(REGISTRY)/$(TAG)
......@@ -5,6 +5,7 @@
BASE=""
LATE=""
export REVISION=$(git log --pretty=format:'%h' -n 1)
CHANGED=$(for i in `git log --name-only --pretty=oneline --full-index $GIT_PREVIOUS_COMMIT..$GIT_COMMIT | grep -vE '^[0-9a-f]{40} '`; do echo `dirname $i`; done | sort | uniq)
for dir in $CHANGED; do
......
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