#!/usr/bin/env bash echo echo echo "Got new commit: $(date)" echo "---" echo # pull latest version git fetch --all git reset --hard origin/main echo "git fetched!" curl -d "name=pi%20git%20updated&body=fetched%20latest%20git%20commit%20for%20vielle.dev/pi-config&key=pi/commit/git" http://compuper:6500/notify # restart/rebuild all containers docker compose build --no-cache docker compose up -d --force-recreate --remove-orphans # clear out dockerfiles to stop my drive exploding docker system prune -af curl -d "name=pi%20ready&body=finished%20building%20docker&key=pi/commit/build" http://compuper:6500/notify exit 0