This commit is contained in:
Ivan Li
2021-07-20 22:30:00 +08:00
parent aec7f65434
commit c86772a5dd
4 changed files with 35 additions and 9 deletions

View File

@ -56,6 +56,14 @@ export class ReposService {
);
}
getDeployRoot(task: PipelineTask) {
return join(
this.configService.get<string>('workspaces.root'),
encodeURIComponent(task.pipeline.project.name),
encodeURIComponent(`deploy-${task.pipeline.name}`),
);
}
async getGit(
project: Project,
workspaceRoot?: string,