tangled
alpha
login
or
join now
vielle.dev
/
server-config
2
fork
atom
Config files for my server. Except not my secrets
2
fork
atom
overview
issues
pulls
pipelines
add more debugging to commit.sh
vielle.dev
2 months ago
1230ff33
b808697c
verified
This commit was signed with the committer's
known signature
.
vielle.dev
SSH Key Fingerprint:
SHA256:/4bvxqoEh9iMdjAPgcgAgXKZZQTROL3ULiPt6nH9RSs=
+7
-7
1 changed file
expand all
collapse all
unified
split
commit.sh
+7
-7
commit.sh
···
3
3
echo "\n\nGot new commit: $(date)\n---\n\n"
4
4
5
5
# pull latest version
6
6
+
echo "git fetch --all"
6
7
git fetch --all
8
8
+
echo "git reset --hard origin/master"
7
9
git reset --hard origin/master
8
10
9
9
-
# curl \
10
10
-
# -d "name=vps%3A%20git%20($(git log -1 --pretty=format:%h))\
11
11
-
# &timeout=5000\
12
12
-
# &body=fetched%20latest%20git%20commit%20for%20vielle.dev/vps-config\
13
13
-
# &key=vps/commit/git" \
14
14
-
# http://compuper:6500/notify
15
15
-
11
11
+
echo "cat <<BODY | curl -d @- http://compuper:6500/notify"
16
12
cat <<BODY | curl -d @- http://compuper:6500/notify
17
13
name=vps%3A%20git%20($(git log -1 --pretty=format:%h))
18
14
&timeout=5000
···
21
17
BODY
22
18
23
19
# restart/rebuild all containers
20
20
+
echo "docker compose build --no-cache"
24
21
docker compose build --no-cache
22
22
+
echo "docker compose up -d --force-recreate"
25
23
docker compose up -d --force-recreate
26
24
27
25
# clear out dockerfiles to stop my drive exploding
26
26
+
echo "docker system prune -af > /dev/null"
28
27
docker system prune -af > /dev/null
29
28
29
29
+
echo "cat <<- BODY | curl -d @- http://compuper:6500/notify"
30
30
cat <<- BODY | curl -d @- http://compuper:6500/notify
31
31
name=vps%3A%20ready%20($(git log -1 --pretty=format:%h))\
32
32
&timeout=5000