ci(deploy): enable containerized production release
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user