Something went wrong. Try again.
Config files for my server. Except not my secrets
Something went wrong. Try again.
server-config commit.sh
964 B · 37 lines
Shell
at commit b808697c
1234567891011121314151617181920212223242526272829303132333435363738#!/usr/bin/env bash
echo "\n\nGot new commit: $(date)\n---\n\n"
# pull latest versiongit fetch --allgit reset --hard origin/master
# curl \# -d "name=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/git" \# 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 containersdocker compose build --no-cachedocker compose up -d --force-recreate
# clear out dockerfiles to stop my drive explodingdocker system prune -af > /dev/null
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