feat(build): add optional content-hash based build cache to skip rebuilding unchanged Dockerfiles

This commit is contained in:
2026-02-06 14:18:06 +00:00
parent 7131c16f80
commit cc83743f9a
6 changed files with 195 additions and 6 deletions

View File

@@ -49,6 +49,9 @@ export let run = () => {
if (argvArg.cache === false) {
buildOptions.noCache = true;
}
if (argvArg.cached) {
buildOptions.cached = true;
}
await manager.build(buildOptions);
logger.log('success', 'Build completed successfully');
@@ -142,6 +145,9 @@ export let run = () => {
if (argvArg.cache === false) {
buildOptions.noCache = true;
}
if (argvArg.cached) {
buildOptions.cached = true;
}
await manager.build(buildOptions);
// Run tests