# GPL2 licenced
set -e
+#set -x
export
#
RSYNC_SRC=/srv/mirror/liveboot
RSYNC_FILTER=''
-# WORK IN PROGRESS
+# TODO: WORK IN PROGRESS
# ri server
RSYNC_DST1="liveboot@riserver/liveboot/"
# pbb (mgmt5)
# staging (mgmt9)
RSYNC_DST3="liveboot@10.252.1.1/liveboot/"
-figlet "still work in progress, but... getting there"
BUILD_SCRIPT=$(mktemp)
cat > $BUILD_SCRIPT <<-EOF
./build.sh $BUILD_NUMBER $GIT_BRANCH
EOF
sudo pbuilder --execute --bindmounts /srv/build/ -- $BUILD_SCRIPT
-
+rm $BUILD_SCRIPT
# FIXME: too much sudo here...
cd /srv/build/liveboot/builds
echo "mirror to DCs is MISSING"
+# TODO: garbage collection
#
# cleanup /srv/mirror, keep MAX number of images
#
# fi
#done
-#figlet "cleanup OK"
echo -n "cleanup DISABLED: "
du -sh /srv/mirror/liveboot
+
+figlet "OK"
+