Config files for my server. Except not my secrets
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/master
12
13curl -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
14
15
16# restart/rebuild all containers
17docker compose build --no-cache
18docker compose up -d --force-recreate
19# add second docker compose up because it acts up ??
20docker compose up -d
21
22# clear out dockerfiles to stop my drive exploding
23docker system prune -af
24
25curl -d "name=vps%20ready&body=finished%20building%20docker&key=vps/commit/build" http://compuper:6500/notify
26
27exit 0