cleanup post-receive hook messages

main
Jonathan Dahan 11 months ago
parent dddb2cbd60
commit 012c3ae1f9

@ -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

Loading…
Cancel
Save