Skip to content

Commit abed39f

Browse files
feat: replace manual pruning with buildkit native gc
Remove max-cache-size-mb input and manual buildctl prune from the post phase. Enable BuildKit's native garbage collection with a time-based policy (keepDuration=192h / 8 days). Layers unused for longer than the retention period are automatically cleaned up; active layers survive indefinitely regardless of total cache size. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent d5e6625 commit abed39f

6 files changed

Lines changed: 9 additions & 941 deletions

File tree

action.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ inputs:
3939
max-parallelism:
4040
description: "Maximum number of concurrent BuildKit RUN steps. Defaults to the number of vCPUs on the runner."
4141
required: false
42-
max-cache-size-mb:
43-
description: "Amount of build cache to retain after pruning, in MB (e.g., 409600 for 400GB). If not set, pruning is skipped."
44-
required: false
4542
runs:
4643
using: node24
4744
main: dist/index.js

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)