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: Webhook build images

Andras Bacsai4b38865cc9cf
diff --git a/package.json b/package.json
index 7c28949bd9..ccc938119f 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "coolify",
"description": "An open-source & self-hostable Heroku / Netlify alternative.",
- "version": "2.6.1",
+ "version": "2.6.2",
"license": "AGPL-3.0",
"scripts": {
"dev": "docker-compose -f docker-compose-dev.yaml up -d && cross-env NODE_ENV=development & svelte-kit dev --host 0.0.0.0",
diff --git a/src/lib/database/applications.ts b/src/lib/database/applications.ts
index d64537b692..caceef3968 100644
--- a/src/lib/database/applications.ts
+++ b/src/lib/database/applications.ts
@@ -138,7 +138,18 @@ export async function getApplicationWebhook({
return s;
});
}
- return { ...application };
+ const { baseImage, baseBuildImage, baseBuildImages, baseImages } = setDefaultBaseImage(
+ application.buildPack
+ );
+
+ // Set default build images
+ if (!application.baseImage) {
+ application.baseImage = baseImage;
+ }
+ if (!application.baseBuildImage) {
+ application.baseBuildImage = baseBuildImage;
+ }
+ return { ...application, baseBuildImages, baseImages };
} catch (e) {
throw { status: 404, body: { message: e.message } };
}