Something went wrong. Try again.
Config files for my server. Except not my secrets
Something went wrong. Try again.
server-config commit.sh
1.0 kB · 40 lines
Shell
at commit fdf0d755
1234567891011121314151617181920212223242526272829303132333435363738394041#!/usr/bin/env bash
echo "Got new commit: $(date)---"
# pull latest versionecho "git fetch --all"git fetch --allecho "git reset --hard origin/master"git reset --hard origin/master
echo "curl -d fetched-latest http://compuper:6500/notify"cat <<BODY | curl -d @- http://compuper:6500/notifyname=vps%3A%20git%20($(git log -1 --pretty=format:%h))&timeout=5000&body=fetched%20latest%20git%20commit%20for%20vielle.dev/vps-config&key=vps/commit/gitBODY
# restart/rebuild all containersecho "docker compose build --no-cache"docker compose build --no-cacheecho "docker compose up -d --force-recreate"docker compose up -d --force-recreate
# clear out dockerfiles to stop my drive explodingecho "docker system prune -af > /dev/null"docker system prune -af > /dev/null
echo "curl -d ready http://compuper:6500/notify"cat <<- BODY | curl -d @- http://compuper:6500/notifyname=vps%3A%20ready%20($(git log -1 --pretty=format:%h))\&timeout=5000&body=finished%20building%20docker&key=vps/commit/buildBODY
exit 0