From eb2bb8765647166dc5feb6c593458acac520e6bc Mon Sep 17 00:00:00 2001 From: Barry Gordon Date: Mon, 28 Feb 2022 12:27:12 +0000 Subject: [PATCH] Fix until filter notation for latest docker-modem --- src/cleanup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cleanup.ts b/src/cleanup.ts index cecb2ae..f475b41 100644 --- a/src/cleanup.ts +++ b/src/cleanup.ts @@ -9,7 +9,7 @@ import Docker from 'dockerode' export async function run(cutoff = '24h'): Promise { try { const docker = new Docker() - const untilFilter = JSON.stringify({until: cutoff}) + const untilFilter = {until: [cutoff]} core.info(`Pruning networks older than ${cutoff}`) await docker.pruneNetworks({filters: untilFilter}) core.info(`Pruning containers older than ${cutoff}`)