fix: Coolify image pulls

This commit is contained in:
Andras Bacsai
2022-02-24 10:37:37 +01:00
parent d6225cbde3
commit c9b52f1310
2 changed files with 7 additions and 36 deletions

View File

@@ -26,10 +26,12 @@ export const get: RequestHandler = async () => {
};
export const post: RequestHandler = async (event) => {
const { type, latestVersion } = await event.request.json();
const { type, latestVersion, overrideVersion = false } = await event.request.json();
if (type === 'pull') {
try {
if (!dev) {
if (!overrideVersion)
await asyncExecShell(`docker image inspect coollabsio/coolify:${latestVersion}`);
await asyncExecShell(`docker pull coollabsio/coolify:${latestVersion}`);
return {
status: 200,