+18
-2
commit.sh
+18
-2
commit.sh
···
10
git fetch --all
11
git reset --hard origin/master
12
13
-
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
14
15
16
# restart/rebuild all containers
17
docker compose build --no-cache
···
22
# clear out dockerfiles to stop my drive exploding
23
docker system prune -af
24
25
-
curl -d "name=vps%20ready&body=finished%20building%20docker&key=vps/commit/build" http://compuper:6500/notify
26
27
exit 0
···
10
git fetch --all
11
git reset --hard origin/master
12
13
+
# curl \
14
+
# -d "name=vps%3A%20git%20($(git log -1 --pretty=format:%h))\
15
+
# &timeout=5000\
16
+
# &body=fetched%20latest%20git%20commit%20for%20vielle.dev/vps-config\
17
+
# &key=vps/commit/git" \
18
+
# http://compuper:6500/notify
19
20
+
cat <<BODY | curl -d @- http://compuper:6500/notify
21
+
name=vps%3A%20git%20($(git log -1 --pretty=format:%h))
22
+
&timeout=5000
23
+
&body=fetched%20latest%20git%20commit%20for%20vielle.dev/vps-config
24
+
&key=vps/commit/git
25
+
BODY
26
27
# restart/rebuild all containers
28
docker compose build --no-cache
···
33
# clear out dockerfiles to stop my drive exploding
34
docker system prune -af
35
36
+
cat <<- BODY | curl -d @- http://compuper:6500/notify
37
+
name=vps%3A%20ready%20($(git log -1 --pretty=format:%h))\
38
+
&timeout=5000
39
+
&body=finished%20building%20docker
40
+
&key=vps/commit/build
41
+
BODY
42
43
exit 0