优化环境变量检查逻辑,移除不必要的密钥
Server CI/CD / docker-image (push) Failing after 27s
Server CI/CD / deploy-fallback-log (push) Successful in 1s

This commit is contained in:
2026-06-10 15:18:10 +08:00
parent 26643d68c7
commit 2af89eea1c
+1 -3
View File
@@ -128,8 +128,6 @@ jobs:
required_env_keys=(
ENVIRONMENT
NETWORK_NAME
SECRET_KEY
ENCRYPTION_KEY
DB_NAME
DB_HOST
DB_PORT
@@ -150,7 +148,7 @@ jobs:
missing_keys=()
for key in "${required_env_keys[@]}"; do
if ! grep -Eq "^[[:space:]]*${key}=" .env; then
if ! grep -Eq "^[[:space:]]*(export[[:space:]]+)?${key}[[:space:]]*=" .env; then
missing_keys+=("$key")
fi
done