From 4c9723b1dfbe07dc5e6f5f0f42ab877e00c2958b Mon Sep 17 00:00:00 2001 From: SkyJourney Date: Wed, 8 Apr 2026 17:45:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=20pipeline=20=E4=B8=BA?= =?UTF-8?q?=E5=8D=95=20job=20=E5=8F=8C=20step?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit build 与 deploy 顺序执行且无并行需要, 合并为一个 job 的两个 step 更简洁 Co-Authored-By: Claude Sonnet 4.6 --- .teamcity/pipeline.yaml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.teamcity/pipeline.yaml b/.teamcity/pipeline.yaml index 0bd4add..4113f54 100644 --- a/.teamcity/pipeline.yaml +++ b/.teamcity/pipeline.yaml @@ -2,8 +2,8 @@ # YAML 格式仅描述 jobs 与 steps 结构。 jobs: - Build: - name: 构建 Docker 镜像 + BuildAndDeploy: + name: 构建并部署 Admin steps: - type: script name: Docker Build @@ -12,12 +12,6 @@ jobs: -f deploy/Dockerfile \ -t zhican-admin:latest \ . - - Deploy: - name: 启动服务 - dependencies: - - Build - steps: - type: script name: Compose Up script-content: |