Compare commits

...

2 Commits

Author SHA1 Message Date
XiaoXia Bot f17e607ad2 fix(ci): 修复build-staging在PR模式下被跳过的问题
CI Build & Deploy / Build Production API Image (push) Has been skipped
CI Build & Deploy / Build Production Web Image (push) Has been skipped
CI Build & Deploy / Build Production Worker Image (push) Has been skipped
CI Build & Deploy / Build Production API Image (pull_request) Has been skipped
CI Build & Deploy / Build Production Web Image (pull_request) Has been skipped
CI Build & Deploy / Build Production Worker Image (pull_request) Has been skipped
CI Build & Deploy / Deploy Production (push) Has been skipped
CI Build & Deploy / Production Browser E2E (push) Has been skipped
CI Build & Deploy / Deploy Production (pull_request) Has been skipped
CI Build & Deploy / Production Browser E2E (pull_request) Has been skipped
CI Build & Deploy / Build Staging API Image (push) Failing after 32s
CI/CD Pipeline / Frontend Lint (push) Failing after 35s
CI/CD Pipeline / Validate Code Quality And Tests (push) Successful in 2m10s
CI/CD Pipeline / Unit Tests (push) Successful in 2m12s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 1m51s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Successful in 2m12s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 2m21s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 1m32s
CI/CD Pipeline / Integration Tests (push) Successful in 1m46s
CI Build & Deploy / Build Staging Web Image (pull_request) Successful in 13m21s
CI Build & Deploy / Build Staging API Image (pull_request) Successful in 21m27s
CI Build & Deploy / Build Staging Web Image (push) Successful in 29m32s
CI Build & Deploy / Build Staging Worker Image (pull_request) Failing after 40m1s
CI Build & Deploy / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI Build & Deploy / Staging E2E Tests (pull_request) Has been skipped
CI Build & Deploy / Staging API Integration Tests (pull_request) Has been skipped
CI Build & Deploy / Build Staging Worker Image (push) Successful in 48m31s
CI Build & Deploy / Deploy Staging (Watchtower auto-deploy) (push) Has been skipped
CI Build & Deploy / Staging E2E Tests (push) Has been skipped
CI Build & Deploy / Staging API Integration Tests (push) Has been skipped
2026-07-15 16:58:43 +08:00
XiaoXia Bot 3cb232a84d feat(ci): 拆分构建workflow + buildx动态命名
CI Build & Deploy / Build Staging API Image (push) Has been skipped
CI Build & Deploy / Build Staging Web Image (push) Has been skipped
CI Build & Deploy / Build Staging Worker Image (push) Has been skipped
CI Build & Deploy / Build Production API Image (push) Has been skipped
CI Build & Deploy / Build Production Web Image (push) Has been skipped
CI Build & Deploy / Build Production Worker Image (push) Has been skipped
CI Build & Deploy / Deploy Staging (Watchtower auto-deploy) (push) Has been skipped
CI Build & Deploy / Deploy Production (push) Has been skipped
CI Build & Deploy / Staging API Integration Tests (push) Has been skipped
CI Build & Deploy / Production Browser E2E (push) Has been skipped
CI Build & Deploy / Staging E2E Tests (push) Has been skipped
CI Build & Deploy / Build Staging API Image (pull_request) Has been skipped
CI Build & Deploy / Build Staging Web Image (pull_request) Has been skipped
CI Build & Deploy / Build Staging Worker Image (pull_request) Has been skipped
CI Build & Deploy / Build Production API Image (pull_request) Has been skipped
CI Build & Deploy / Build Production Web Image (pull_request) Has been skipped
CI Build & Deploy / Build Production Worker Image (pull_request) Has been skipped
CI Build & Deploy / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI Build & Deploy / Deploy Production (pull_request) Has been skipped
CI Build & Deploy / Staging API Integration Tests (pull_request) Has been skipped
CI Build & Deploy / Staging E2E Tests (pull_request) Has been skipped
CI Build & Deploy / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Frontend Lint (push) Successful in 59s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 52s
CI/CD Pipeline / Unit Tests (push) Successful in 2m7s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 2m4s
CI/CD Pipeline / Validate Code Quality And Tests (push) Successful in 2m28s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Successful in 2m24s
CI/CD Pipeline / Integration Tests (push) Successful in 1m28s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 1m23s
问题1 - cancel-in-progress踩踏:
- 将构建类job拆分到独立的 .gitea/workflows/ci-build.yml
- 新workflow cancel-in-progress: false,构建启动后不被新commit顶掉
- 原ci-cd.yml保留4个门禁job(validate/unit/integration/frontend-lint)
- 门禁workflow保持cancel-in-progress: true,快速响应新commit

问题2 - buildx name冲突:
- 所有 docker buildx create/use/rm 的 ci-builder 改为动态名
- 动态命名:ci-builder-${{ github.run_id }}-${{ github.job }}
- 每个job每个run独立builder实例,多runner同机构建不冲突

变更统计:
- ci-cd.yml:910行 → 406行(仅门禁)
- ci-build.yml:新增535行(构建+部署+E2E)
- buildx实例:10处引用全部动态化
2026-07-15 16:49:04 +08:00
2 changed files with 534 additions and 504 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long