Files
nexus-timer/hooks/update.sh
2025-05-10 02:27:51 +02:00

16 lines
296 B
Bash
Executable File

#!/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."