infra: deploy script + webhook server + S3 uploader (saguaro test)

This commit is contained in:
Telegram Bot
2026-04-29 01:28:59 +03:00
parent d857400988
commit 5f99a0460c
4 changed files with 309 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash
set -e
LOG=/var/log/ptp-deploy.log
echo "[2026-04-29 00:05:28] Deploy started" >> $LOG
cd /var/www/hugo-source
git checkout mirror >> $LOG 2>&1
git pull gitea mirror >> $LOG 2>&1
hugo -d /var/www/html --baseURL 'https://ptp.saguaro-cactus.ru' >> $LOG 2>&1
echo "[2026-04-29 00:05:28] Deploy done" >> $LOG