From 012c3ae1f9ded25be1d9c70176ab099ebf84a4b3 Mon Sep 17 00:00:00 2001 From: Jonathan Dahan Date: Sun, 2 Jun 2024 14:10:15 -0400 Subject: [PATCH] cleanup post-receive hook messages --- hooks/post-receive | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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