fix(ci): update environment variable checks and enhance staging configuration

Correct the regex in the Docker deployment workflow to properly validate environment variable placeholders. Additionally, update the staging environment configuration by adding specific keys and values for Tencent Cloud services, ensuring proper setup for deployment.
This commit is contained in:
penghanyuan
2026-05-17 17:10:30 +02:00
parent 0a9381c711
commit 63632e2fe8
2 changed files with 69 additions and 96 deletions

View File

@@ -308,7 +308,7 @@ jobs:
exit 1
fi
# 仅检查「有效配置行」:跳过整行注释,避免 # KEY=your_* 示例误伤部署
if grep -Ev '^[[:space:]]*#' "$ENV_SRC" | grep -Eq '=(your_|replace_with_|\\.{3})$'; then
if grep -Ev '^[[:space:]]*#' "$ENV_SRC" | grep -Eq '=(your_|replace_with_|\.{3}$)'; then
echo "::error::$ENV_SRC 仍包含占位符值,请先完善环境文件。"
exit 1
fi