Commit 28603fb7 authored by Konstantin Pavlov's avatar Konstantin Pavlov

rebuild.sh: rebuild changed images.

parent 60da5f88
#!/bin/sh
# this is a helper script to rebuild all base images and then all dependant images
# rebuilding dind image is too dangerous
BASE=""
LATE=""
BASE="jessie sid"
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)
DEPS="vlc-debian-unstable vlc-debian-android vlc-debian-win32 vlc-debian-win64"
for dir in $CHANGED; do
case $dir in
videolan-base*)
BASE="$BASE $dir"
;;
*)
LATE="$LATE $dir"
;;
.)
;;
esac
done
for type in $BASE; do
make -C videolan-base/$type push
for b in $BASE; do
make -C $b push
done
for dep in $DEPS; do
make -C $dep push
for l in $LATE; do
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