From 1cecb4f1db3074b1ac4450dbfd2313a0a291ef49 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Thu, 16 Jul 2026 20:58:15 +0800 Subject: [PATCH] =?UTF-8?q?feat(ci):=20deploy=20job=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E7=8B=AC=E7=AB=8Bconcurrency=EF=BC=8C=E9=83=A8=E7=BD=B2?= =?UTF-8?q?=E6=8E=92=E9=98=9F=E4=B8=8D=E6=89=93=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - deploy-staging: 同分支部署排队,cancel-in-progress: false - deploy-production: tag部署排队,cancel-in-progress: false 避免新push打断正在进行的部署,保证部署完整性和健康检查有效性。 --- .gitea/workflows/ci-build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitea/workflows/ci-build.yml b/.gitea/workflows/ci-build.yml index da5439f8f..1b2772def 100644 --- a/.gitea/workflows/ci-build.yml +++ b/.gitea/workflows/ci-build.yml @@ -159,6 +159,9 @@ jobs: name: Deploy Staging (Watchtower auto-deploy) runs-on: saas timeout-minutes: 15 + concurrency: + group: deploy-staging-${{ gitea.ref }} + cancel-in-progress: false needs: - build-staging if: github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'develop') @@ -594,6 +597,9 @@ jobs: name: Deploy Production runs-on: saas timeout-minutes: 30 + concurrency: + group: deploy-production-${{ gitea.ref }} + cancel-in-progress: false if: startsWith(github.ref, 'refs/tags/v') needs: - build-production -- 2.54.0