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
|
||||
|
||||
Reference in New Issue
Block a user