#!/usr/bin/env bash echo "\n\nGot new commit: $(date)\n---\n\n" # pull latest version git fetch --all git reset --hard origin/master # curl \ # -d "name=vps%3A%20git%20($(git log -1 --pretty=format:%h))\ # &timeout=5000\ # &body=fetched%20latest%20git%20commit%20for%20vielle.dev/vps-config\ # &key=vps/commit/git" \ # http://compuper:6500/notify cat < /dev/null 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