feat(buildx): add automatic Buildx cleanup for stale builders and end-of-run cache pruning

This commit is contained in:
2026-05-22 13:07:11 +00:00
parent e10c51f6df
commit 7246e28e3e
7 changed files with 350 additions and 2049 deletions
+5
View File
@@ -8,6 +8,11 @@ export interface ITsDockerConfig {
platforms?: string[]; // ['linux/amd64', 'linux/arm64']
push?: boolean;
testDir?: string;
autoCleanup?: boolean; // Automatically prune/remove tsdocker buildx resources
cleanupOnStart?: boolean; // Run startup maintenance for stale tsdocker builders
buildxPruneUntil?: string; // Prune cache older than this duration, e.g. '168h'; use '0' to disable
buildxPruneMaxUsedSpace?: string; // Keep each tsdocker builder cache below this size, e.g. '2gb'; use '0' to disable
removeCiBuilders?: boolean; // Remove session-specific CI builders after each run
}
/**