#!/usr/bin/env bash echo "\n\nGot new commit: $(date)\n---\n\n" # pull latest version echo "git fetch --all" git fetch --all echo "git reset --hard origin/master" git reset --hard origin/master echo "cat < /dev/null" docker system prune -af > /dev/null echo "cat <<- BODY | curl -d @- 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