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