Add automation
Some checks are pending
Deploy to Server / deploy (push) Waiting to run

This commit is contained in:
m0onmo0n 2026-04-12 18:17:18 +02:00
parent 9f42452ba5
commit bb5bdc297d

21
update-site.sh Executable file
View file

@ -0,0 +1,21 @@
#!/usr/bin/env bash
set -e
cd /home/prodesk/live-site
git fetch origin main
LOCAL=$(git rev-parse HEAD)
REMOTE=$(git rev-parse origin/main)
if [ "$LOCAL" != "$REMOTE" ]; then
echo "$(date): Updates found, pulling..."
git pull origin main
echo "$(date): Restarting docker container..."
docker restart 49cf803425d2
echo "$(date): Update complete."
else
echo "$(date): No updates."
fi