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"
+11
View File
@@ -1,5 +1,16 @@
#!/bin/bash
set -euo pipefail
unset_git_hook_env() {
local var
while IFS= read -r var; do
[ -n "$var" ] && unset "$var"
done < <(git rev-parse --local-env-vars 2>/dev/null || true)
}
unset_git_hook_env
# Main 分支 worktree 路径
WORKTREE_PATH="/Users/chase/Documents/frontend/cozsweet-frontend-nextjs.worktrees/cozsweet-nextjs-main"