ci: Gitea Actions deploy via self-hosted runner
Deploy dev / deploy (push) Failing after 0s

This commit is contained in:
Azmat@qq.com
2026-09-23 15:41:46 +08:00
parent 806d6bf62a
commit a477177bab
3 changed files with 85 additions and 2 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# push → Gitea Webhook → 本脚本:仅部署 dev 到本机 Docker Compose
# 部署 dev 到本机 Docker Compose(可由 Gitea Actions 或 Webhook 调用)
set -euo pipefail
APP_DIR="${APP_DIR:-/opt/AirShelf}"
@@ -27,7 +27,7 @@ fi
exit 1
fi
# .env 在仓库里被跟踪,pull 会覆盖服务器上的生产配置;先备份再还原
# .env 在仓库里被跟踪,pull 会覆盖服务器生产配置;先备份再还原
ENV_BACKUP=""
if [[ -f "$ENV_FILE" ]]; then
ENV_BACKUP="$(mktemp)"