commit 53fff33034b0417ccad25003d3f5476acb08643a parent 402b653d8b17a6bf1c83cf0986cfef21925fb9b4 Author: Damian Myrda <damian@prime8.dev> Date: Thu, 22 Oct 2026 18:10:04 +0000 hooks: queue pushes for host git-publish Diffstat:
| M | git-hooks/post-receive | | | 8 | ++++---- |
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/git-hooks/post-receive b/git-hooks/post-receive @@ -1,6 +1,6 @@ #!/bin/sh -# Runs in the site container after every push over prime8.dev:22. Touching -# /srv/git/deploy/<repo> wakes the host's git-publish path unit, which -# regenerates the repo's pages and deploys the site when it was prime8dev. +# Runs in the site container after every push over prime8.dev:22. A file in +# /srv/git/deploy/queue wakes the host's git-publish path unit, which +# regenerates the repo's pages and redeploys the site when it was prime8dev. name=$(basename "$(pwd)" .git) -touch "${GIT_DEPLOY_DIR:-/srv/git/deploy}/$name" 2>/dev/null || true +date > "${GIT_DEPLOY_DIR:-/srv/git/deploy}/queue/$name" 2>/dev/null || true