修复:在主仓库根目录执行构建命令
This commit is contained in:
parent
1813a448e8
commit
c6dd75daeb
|
|
@ -152,14 +152,13 @@ class Deployer:
|
||||||
def build_project(self, repo_config):
|
def build_project(self, repo_config):
|
||||||
"""构建项目"""
|
"""构建项目"""
|
||||||
repo_path = self.runtime_path / 'a-cloud-all'
|
repo_path = self.runtime_path / 'a-cloud-all'
|
||||||
submodule_path = repo_path / repo_config['path']
|
|
||||||
|
|
||||||
self.logger.info(f"开始构建: {repo_config['name']}")
|
self.logger.info(f"开始构建: {repo_config['name']}")
|
||||||
|
|
||||||
# 执行构建命令
|
# 执行构建命令(在主仓库根目录执行)
|
||||||
for cmd in repo_config['build_commands']:
|
for cmd in repo_config['build_commands']:
|
||||||
self.logger.info(f"执行构建命令: {cmd}")
|
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}")
|
self.logger.error(f"构建失败: {cmd}")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue