From 16dd742c8bb15dd8db1b3f6d227c7be4e75669da Mon Sep 17 00:00:00 2001 From: CI Bot Date: Sat, 11 Jul 2026 17:44:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20runner=E6=A0=87=E7=AD=BE=E9=80=82?= =?UTF-8?q?=E9=85=8D=20+=20=E5=8A=A0workflow=5Fdispatch=E8=A7=A6=E5=8F=91?= =?UTF-8?q?=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 所有job改为 runs-on: host(适配当前runner标签) - 添加 workflow_dispatch 支持手动触发 --- .gitea/workflows/ci-cd.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/ci-cd.yml b/.gitea/workflows/ci-cd.yml index f37437396..be7a0d086 100755 --- a/.gitea/workflows/ci-cd.yml +++ b/.gitea/workflows/ci-cd.yml @@ -15,6 +15,7 @@ on: branches: - main - develop + workflow_dispatch: permissions: contents: read @@ -22,7 +23,7 @@ permissions: jobs: validate: name: Validate Code Quality And Tests - runs-on: ubuntu-22.04 + runs-on: host timeout-minutes: 10 env: @@ -282,7 +283,7 @@ print(f'Total coverage: {line_rate:.2f}%') integration-tests: name: Integration Tests - runs-on: saas + runs-on: host timeout-minutes: 20 steps: @@ -528,7 +529,7 @@ EOF frontend-lint: name: Frontend Lint - runs-on: ubuntu-22.04 + runs-on: host timeout-minutes: 10 steps: @@ -690,7 +691,7 @@ EOF deploy-staging: name: Build & Push Staging (Watchtower auto-deploy) - runs-on: saas + runs-on: host timeout-minutes: 30 needs: [validate, frontend-lint] @@ -943,7 +944,7 @@ EOF staging-e2e: name: Staging E2E Tests - runs-on: saas + runs-on: host timeout-minutes: 15 if: github.ref_name == 'develop' || github.ref_name == 'main' needs: deploy-staging @@ -1010,7 +1011,7 @@ EOF staging-api-tests: name: Staging API Integration Tests - runs-on: saas + runs-on: host timeout-minutes: 10 if: github.ref_name == 'develop' || github.ref_name == 'main' needs: deploy-staging @@ -1076,7 +1077,7 @@ EOF build-production-runtime-images: name: Build Production Runtime Images - runs-on: saas + runs-on: host timeout-minutes: 30 needs: [validate, frontend-lint] @@ -1155,7 +1156,7 @@ EOF deploy-production: name: Deploy Production - runs-on: saas + runs-on: host timeout-minutes: 20 if: startsWith(github.ref, 'refs/tags/v') needs: build-production-runtime-images @@ -1220,7 +1221,7 @@ EOF production-e2e: name: Production Browser E2E - runs-on: saas + runs-on: host timeout-minutes: 15 if: startsWith(github.ref, 'refs/tags/v') needs: deploy-production