fix: cleanup coolify images
This commit is contained in:
parent
0926d40247
commit
6655fb182c
@ -8,9 +8,10 @@ export default async function () {
|
||||
const host = getEngine(destinationDocker.engine);
|
||||
// Cleanup old coolify images
|
||||
try {
|
||||
const { stdout: images } = await asyncExecShell(
|
||||
let { stdout: images } = await asyncExecShell(
|
||||
`DOCKER_HOST=${host} docker images coollabsio/coolify --filter before="coollabsio/coolify:latest" -q | xargs `
|
||||
);
|
||||
images = images.trim();
|
||||
if (images) {
|
||||
await asyncExecShell(`DOCKER_HOST=${host} docker rmi ${images}`);
|
||||
}
|
||||
|
@ -87,7 +87,7 @@ const cron = async () => {
|
||||
|
||||
await queue.proxy.add('proxy', {}, { repeat: { every: 10000 } });
|
||||
await queue.ssl.add('ssl', {}, { repeat: { every: dev ? 10000 : 60000 } });
|
||||
await queue.cleanup.add('cleanup', {}, { repeat: { every: 300000 } });
|
||||
await queue.cleanup.add('cleanup', {}, { repeat: { every: dev ? 10000 : 300000 } });
|
||||
await queue.sslRenew.add('sslRenew', {}, { repeat: { every: 1800000 } });
|
||||
|
||||
const events = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user