+12
-2
commit.sh
+12
-2
commit.sh
···
12
12
13
13
echo "git fetched!"
14
14
15
-
curl -d "name=pi%20git%20updated%20$(git log -1 --pretty=format:%h)&timeout=5000&body=fetched%20latest%20git%20commit%20for%20vielle.dev/pi-config&key=pi/commit/git" http://compuper:6500/notify
15
+
cat <<BODY | curl -d @- http://compuper:6500/notify
16
+
name=vps%3A%20git%20($(git log -1 --pretty=format:%h))\
17
+
&timeout=5000\
18
+
&body=fetched%20latest%20git%20commit%20for%20vielle.dev/pi-config\
19
+
&key=pi/commit/git
20
+
BODY
16
21
17
22
# restart/rebuild all containers
18
23
docker compose build
···
21
26
# clear out dockerfiles to stop my drive exploding
22
27
docker system prune -af
23
28
24
-
curl -d "name=pi%20ready&timeout=5000&body=finished%20building%20docker&key=pi/commit/build" http://compuper:6500/notify
29
+
cat <<BODY | curl -d @- http://compuper:6500/notify
30
+
name=pi%3A%20ready%20($(git log -1 --pretty=format:%h))
31
+
&timeout=5000
32
+
&body=finished%20building%20docker
33
+
&key=pi/commit/build
34
+
BODY
25
35
26
36
exit 0