Commit cafefa9a authored by Konstantin Pavlov's avatar Konstantin Pavlov

Removed unneded files.

parent b02d6844
REGISTRY := registry.videolan.org:5000
TAG := $(notdir $(CURDIR))
DATE := $(shell date +'%Y%m%d%H%M%S')
.PHONY: build push
all:
build:
docker build -t $(TAG):$(REVISION) .
push:
docker tag $(TAG):$(REVISION) $(REGISTRY)/$(TAG)
docker tag $(TAG):$(REVISION) $(REGISTRY)/$(TAG):$(DATE)
docker push $(REGISTRY)/$(TAG)
docker push $(REGISTRY)/$(TAG):$(DATE)
include ../common.mak
#!/bin/sh
set -e
/usr/bin/env
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
case $dir in
videolan-base*)
BASE="$BASE $dir"
;;
.)
;;
*)
LATE="$LATE $dir"
;;
esac
done
echo "Changed base images: '$BASE'"
echo "Changed late images: '$LATE'"
for b in $BASE; do
[ -d "$b" ] || continue
make -C $b build
make -C $b push
done
for l in $LATE; do
[ -d "$l" ] || continue
make -C $l build
make -C $l push
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