Skip to content

Commit

Permalink
Fix until filter notation for latest docker-modem
Browse files Browse the repository at this point in the history
  • Loading branch information
Barry Gordon committed Feb 28, 2022
1 parent 068fc70 commit eb2bb87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cleanup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Docker from 'dockerode'
export async function run(cutoff = '24h'): Promise<void> {
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}`)
Expand Down

0 comments on commit eb2bb87

Please sign in to comment.