ci deploy (src 64628e9)

This commit is contained in:
2026-06-11 17:23:33 +08:00
committed by gitea-actions
commit 390058d378
9 changed files with 298 additions and 0 deletions

14
sgame-admin-sync.service Normal file
View File

@ -0,0 +1,14 @@
[Unit]
Description=SGame admin 发版拉取(检查产物仓,有新构建才重启服务)
After=network-online.target
[Service]
Type=oneshot
# 需要 rootinstall 到 /opt 并 systemctl restart 主服务
User=root
ExecStart=/opt/sgame-admin/vps-sync.sh
# 拉取脚本内部已有 git 超时,这里再兜一层,杜绝 timer 任务堆积
TimeoutStartSec=180
StandardOutput=journal
StandardError=journal
SyslogIdentifier=sgame-admin-sync