[CI] 端口硬编码清理 - CI脚本统一共享PG端口变量 #797

Closed
opened 2026-07-24 00:25:19 +08:00 by xiaoxia · 0 comments
Owner

问题

run_integration_tests.sh / run_validate.sh / validate_migration.sh 三个脚本各自硬编码了 SHARED_PG_PORT=5433,没有统一变量管理。

同时 ci-pipeline.yml 中有两处硬编码 host.docker.internal:5432。

目标

  • CI脚本中的共享PG端口统一通过环境变量或常量文件管理
  • ci-pipeline.yml中的数据库连接串抽取为变量
  • 避免后续改端口要找N个地方改

范围

  • scripts/ci/run_integration_tests.sh
  • scripts/ci/run_validate.sh
  • scripts/ci/validate_migration.sh
  • .gitea/workflows/ci-pipeline.yml
## 问题 run_integration_tests.sh / run_validate.sh / validate_migration.sh 三个脚本各自硬编码了 SHARED_PG_PORT=5433,没有统一变量管理。 同时 ci-pipeline.yml 中有两处硬编码 host.docker.internal:5432。 ## 目标 - CI脚本中的共享PG端口统一通过环境变量或常量文件管理 - ci-pipeline.yml中的数据库连接串抽取为变量 - 避免后续改端口要找N个地方改 ## 范围 - scripts/ci/run_integration_tests.sh - scripts/ci/run_validate.sh - scripts/ci/validate_migration.sh - .gitea/workflows/ci-pipeline.yml
xiaoxia added the P1ci-pipelinecleanup labels 2026-07-24 00:25:19 +08:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: xiaoxia/xiaoxia-saas#797