this repo has no description
1#!/usr/bin/env bash
2
3echo
4echo
5echo "Got new commit: $(date)"
6echo "---"
7echo
8
9# pull latest version
10git fetch --all
11git reset --hard origin/main
12
13echo "git fetched!"
14
15curl -d "name=pi%20git%20updated&body=fetched%20latest%20git%20commit%20for%20vielle.dev/pi-config&key=pi/commit/git" http://compuper:6500/notify
16
17# restart/rebuild all containers
18docker compose build --no-cache
19docker compose up -d --force-recreate --remove-orphans
20
21# clear out dockerfiles to stop my drive exploding
22docker system prune -af
23
24curl -d "name=pi%20ready&body=finished%20building%20docker&key=pi/commit/build" http://compuper:6500/notify
25
26exit 0