We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3eb57f3 commit 265bd9cCopy full SHA for 265bd9c
1 file changed
packages/runner/src/docker.ts
@@ -37,6 +37,10 @@ const runDockerRmi = async (image: DockerImage) => {
37
console.log(`INFO: Deleting image "${image.tag}"`)
38
await execa('docker', ['rmi', '--force', image.tag], { stdio: 'inherit' })
39
console.log(`INFO: Deleted image "${image.tag}"`)
40
+ console.log(`INFO: Removing unused build cache`)
41
+ await execa('docker', ['builder', 'prune', '--force'], { stdio: 'inherit' })
42
+ await execa('docker', ['buildx', 'prune', '--force'], { stdio: 'inherit' })
43
+ console.log(`INFO: Removed unused build cache`)
44
image.status = 'toBuild'
45
} catch {
46
console.log(`WARN: Error deleting image "${image.tag}"`)
0 commit comments