fix: pull coolify image only when the app needs to be updated

This commit is contained in:
Vahor
2024-09-04 19:38:13 +02:00
parent eaabf94cd7
commit 02f950edc7
3 changed files with 5 additions and 21 deletions

View File

@@ -62,10 +62,11 @@ class UpdateCoolify
return;
}
instant_remote_process(["docker pull -q ghcr.io/coollabsio/coolify:{$this->latestVersion}"], $this->server, false);
remote_process([
'curl -fsSL https://cdn.coollabs.io/coolify/upgrade.sh -o /data/coolify/source/upgrade.sh',
"bash /data/coolify/source/upgrade.sh $this->latestVersion",
], $this->server);
}
}