fix: added docker compose patch file
This commit is contained in:
parent
f4794d006b
commit
7be4cb54f4
7
index.ts
7
index.ts
|
|
@ -220,6 +220,13 @@ async function deployYimaruBackend(
|
|||
return { success: false, message: gitResult.error!, deploymentId };
|
||||
}
|
||||
|
||||
console.log(`Applying docker-compose patch...`);
|
||||
const patchResult = await execCommand("git apply docker-compose.patch", repoPath, deploymentId);
|
||||
if (!patchResult.success) {
|
||||
updateDeploymentStatus(deploymentId, "failed");
|
||||
return { success: false, message: `git apply docker-compose.patch failed: ${patchResult.error || patchResult.output}`, deploymentId };
|
||||
}
|
||||
|
||||
// Go mod tidy
|
||||
console.log(`Tidying Go modules...`);
|
||||
const tidyResult = await execCommand(`${goEnv} && go mod tidy`, repoPath, deploymentId);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user