16 lines
294 B
Bash
Executable File
16 lines
294 B
Bash
Executable File
#!/bin/sh
|
|
|
|
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."
|