added hook script

This commit is contained in:
cpu
2025-05-10 02:27:51 +02:00
parent 411d7568a7
commit a026995d4e

15
hooks/update.sh Executable file
View File

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