mirror of
https://github.com/ershisan99/coolify.git
synced 2026-01-01 12:33:45 +00:00
fix: Coolify image pulls
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user