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