Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: do not rebuild in case image exists and sha not changed

Andras Bacsai0904d1ff9c4b
diff --git a/apps/api/src/jobs/deployApplication.ts b/apps/api/src/jobs/deployApplication.ts
index d553e69c9e..b5dbe24d9c 100644
--- a/apps/api/src/jobs/deployApplication.ts
+++ b/apps/api/src/jobs/deployApplication.ts
@@ -189,7 +189,7 @@ import * as buildpacks from '../lib/buildPacks';
let imageFound = false;
try {
await image.inspect();
- imageFound = false;
+ imageFound = true;
} catch (error) {
//
}
@@ -235,7 +235,7 @@ import * as buildpacks from '../lib/buildPacks';
throw new Error(`Build pack ${buildPack} not found.`);
}
} else {
- await saveBuildLog({ line: 'Nothing changed.', buildId, applicationId });
+ await saveBuildLog({ line: 'Build image already available - no rebuild required.', buildId, applicationId });
}
try {
await asyncExecShell(`DOCKER_HOST=${host} docker stop -t 0 ${imageId}`);