From 7be4cb54f432c0bc1709119d87d03d5b7f82fa5c Mon Sep 17 00:00:00 2001 From: Kerod-Fresenbet-Gebremedhin2660 Date: Wed, 4 Mar 2026 10:57:23 +0300 Subject: [PATCH] fix: added docker compose patch file --- index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.ts b/index.ts index d7b08e1..78dfd6e 100644 --- a/index.ts +++ b/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);