this repo has no description
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

at master 36 lines 906 B view raw
1#!/usr/bin/env bash 2 3echo " 4Got new commit: $(date) 5--- 6" 7 8# pull latest version 9echo "git fetch --all" 10git fetch --all 11echo "git reset --hard origin/master" 12git reset --hard origin/master 13 14echo "curl -d fetched-latest http://compuper.tailnet:6500/notify" 15cat <<BODY | curl -d @- http://compuper.tailnet:6500/notify 16name=vps%3A%20git%20($(git log -1 --pretty=format:%h)) 17&timeout=5000 18&body=fetched%20latest%20git%20commit%20for%20vielle.dev/vps-config 19&key=vps/commit/git 20BODY 21 22# restart/rebuild all containers 23echo "docker compose build" 24docker compose build 25echo "docker compose up -d --force-recreate" 26docker compose up -d --force-recreate 27 28echo "curl -d ready http://compuper.tailnet:6500/notify" 29cat <<- BODY | curl -d @- http://compuper.tailnet:6500/notify 30name=vps%3A%20ready%20($(git log -1 --pretty=format:%h))\ 31&timeout=5000 32&body=finished%20building%20docker 33&key=vps/commit/build 34BODY 35 36exit 0