#!/usr/bin/env bash echo " Got new commit: $(date) --- " # pull latest version echo "git fetch --all" git fetch --all echo "git reset --hard origin/master" git reset --hard origin/master echo "curl -d fetched-latest http://compuper:6500/notify" cat < /dev/null" docker system prune -f > /dev/null echo "curl -d ready http://compuper:6500/notify" cat <<- BODY | curl -d @- http://compuper:6500/notify name=vps%3A%20ready%20($(git log -1 --pretty=format:%h))\ &timeout=5000 &body=finished%20building%20docker &key=vps/commit/build BODY exit 0