#!/usr/bin/env bash echo echo echo "Got new commit: $(date)" echo "---" echo # pull latest version git fetch --all git reset --hard origin/master curl -d "name=vps%20git%20updated&body=$(git log -1 --pretty=format:%h)%3A%20fetched%20latest%20git%20commit%20for%20vielle.dev/vps-config&key=vps/commit/git" http://compuper:6500/notify # restart/rebuild all containers docker compose build --no-cache docker compose up -d --force-recreate # add second docker compose up because it acts up ?? docker compose up -d # clear out dockerfiles to stop my drive exploding docker system prune -af curl -d "name=vps%20ready&body=finished%20building%20docker&key=vps/commit/build" http://compuper:6500/notify exit 0