diff --git a/hooks/post-receive b/hooks/post-receive index 02c6a49..b58c632 100755 --- a/hooks/post-receive +++ b/hooks/post-receive @@ -4,22 +4,22 @@ set -e -u while read oldrev newrev ref do if [[ $ref =~ .*/main$ ]]; then - echo "main ref received" + echo "[deploy] main ref received" - echo "moving into temporary work tree"; { + echo "[deploy] moving into temporary work tree"; { gitdir=$PWD cd ~/jonathan.is } - echo "checking out latest source"; { + echo "[deploy] checking out latest source"; { git --work-tree=$PWD --git-dir=$gitdir checkout --force } - echo "building and deploying site"; { + echo "[deploy] building and deploying site"; { podman-compose --profile deploy build } - echo "updating post-receive hook for future runs"; { + echo "[deploy] updating post-receive hook"; { cp hooks/post-receive $0 } fi