ci(deploy): enable containerized production release

This commit is contained in:
2026-07-06 12:58:01 +08:00
parent 0462f60bc5
commit fca397a87d
6 changed files with 67 additions and 57 deletions
+2 -2
View File
@@ -121,11 +121,11 @@ purge_cdn_cache() {
source_env_file "$primary_env" || true
if [ -z "$CF_ZONE_ID" ] || [ -z "$CF_API_TOKEN" ]; then
if [ -z "${CF_ZONE_ID:-}" ] || [ -z "${CF_API_TOKEN:-}" ]; then
source_env_file "$fallback_env" || true
fi
if [ -z "$CF_ZONE_ID" ] || [ -z "$CF_API_TOKEN" ]; then
if [ -z "${CF_ZONE_ID:-}" ] || [ -z "${CF_API_TOKEN:-}" ]; then
echo "错误: Cloudflare 配置不完整(CF_ZONE_ID / CF_API_TOKEN),跳过缓存清除"
return 1
fi
+2
View File
@@ -4,6 +4,8 @@
# 原始 Dart: scripts/deploy/deploy_web.sh
# ==========================================
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$SCRIPT_DIR/_deploy_lib.sh"
+2
View File
@@ -4,6 +4,8 @@
# 原始 Dart: scripts/deploy/deploy_web_test.sh
# ==========================================
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$SCRIPT_DIR/_deploy_lib.sh"