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 · 37 lines
Shell
at commit 1230ff33
1234567891011121314151617181920212223242526272829303132333435363738#!/usr/bin/env bash
echo "\n\nGot new commit: $(date)\n---\n\n"
# pull latest versionecho "git fetch --all"git fetch --allecho "git reset --hard origin/master"git reset --hard origin/master
echo "cat <<BODY | curl -d @- 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 "cat <<- BODY | curl -d @- 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