diff --git a/hooks/update.sh b/hooks/update.sh new file mode 100755 index 0000000..d88180a --- /dev/null +++ b/hooks/update.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +set -e +echo "[webhook] Pulling new code..." + +cd /virt/nexus-timer || exit 1 +git pull origin main + +echo "[webhook] Building image..." +docker build -t virt-nexus-timer . + +echo "[webhook] Restarting systemd service..." +systemctl restart virt-nexus-timer.service + +echo "[webhook] Done."