94afec2b9c
CI/CD Pipeline / Check if frontend-only change (push) Has been skipped
CI/CD Pipeline / Validate - Type Check (mypy) (push) Successful in 1m8s
CI/CD Pipeline / Validate - Code Quality (push) Failing after 1m49s
CI/CD Pipeline / PR Build API Image (push) Has been skipped
CI/CD Pipeline / PR Build Web Image (push) Has been skipped
CI/CD Pipeline / PR Build Worker Image (push) Has been skipped
CI/CD Pipeline / Frontend Lint (push) Successful in 28s
CI/CD Pipeline / Validate - Migration (alembic) (push) Successful in 1m8s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 1m55s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 6m13s
CI/CD Pipeline / Build Staging API Image (push) Successful in 14m43s
CI/CD Pipeline / Build Production API Image (push) Has been skipped
CI/CD Pipeline / Build Production Web Image (push) Has been skipped
CI/CD Pipeline / Build Production Worker Image (push) Has been skipped
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 1m1s
CI/CD Pipeline / Integration Tests (push) Successful in 2m16s
CI/CD Pipeline / Unit Tests (push) Successful in 5m22s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 1m18s
CI/CD Pipeline / Deploy Production (push) Has been skipped
CI/CD Pipeline / Staging E2E Tests (push) Has been cancelled
CI/CD Pipeline / Staging API Integration Tests (push) Has been cancelled
CI/CD Pipeline / Production Browser E2E (push) Has been cancelled
CI/CD Pipeline / ACR Image Cleanup (push) Has been cancelled
清理CI脚本中硬编码的端口/用户/密码/DB名,统一抽到scripts/ci/ci_env.sh常量文件管理;ci-pipeline.yml中DATABASE_URL硬编码改为workflow级env变量引用。
15 lines
596 B
Bash
Executable File
15 lines
596 B
Bash
Executable File
#!/bin/bash
|
||
# CI共享环境变量与常量定义
|
||
# 所有CI脚本source此文件获取统一的配置,避免硬编码分散
|
||
|
||
# === 共享常驻PG实例(CI_USE_SHARED_PG=true时使用)===
|
||
export CI_SHARED_PG_PORT="${CI_SHARED_PG_PORT:-5433}"
|
||
export CI_SHARED_PG_USER="${CI_SHARED_PG_USER:-postgres}"
|
||
export CI_SHARED_PG_PASSWORD="${CI_SHARED_PG_PASSWORD:-ci_pg_2026!}"
|
||
|
||
# === 本地PG默认端口(CI_USE_SHARED_PG=false时容器映射或本地PG)===
|
||
export CI_LOCAL_PG_PORT="${CI_LOCAL_PG_PORT:-5432}"
|
||
|
||
# === 默认数据库名 ===
|
||
export CI_DEFAULT_DB="${CI_DEFAULT_DB:-xiaoxia_saas}"
|