From c6dd75daebb763648764ed0480524b6cb4acfe6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=B0=8F=E4=BA=91?= Date: Fri, 9 Jan 2026 18:23:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E5=9C=A8=E4=B8=BB?= =?UTF-8?q?=E4=BB=93=E5=BA=93=E6=A0=B9=E7=9B=AE=E5=BD=95=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devops/deployer.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.devops/deployer.py b/.devops/deployer.py index b883f70..bc2ecfe 100644 --- a/.devops/deployer.py +++ b/.devops/deployer.py @@ -152,14 +152,13 @@ class Deployer: def build_project(self, repo_config): """构建项目""" repo_path = self.runtime_path / 'a-cloud-all' - submodule_path = repo_path / repo_config['path'] self.logger.info(f"开始构建: {repo_config['name']}") - # 执行构建命令 + # 执行构建命令(在主仓库根目录执行) for cmd in repo_config['build_commands']: self.logger.info(f"执行构建命令: {cmd}") - if not self.run_command(cmd, cwd=submodule_path, timeout=1800): + if not self.run_command(cmd, cwd=repo_path, timeout=1800): self.logger.error(f"构建失败: {cmd}") return False