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

@@ -1,5 +1,14 @@
# Changelog
## 2026-02-06 - 1.8.0 - feat(build)
add optional content-hash based build cache to skip rebuilding unchanged Dockerfiles
- Introduce TsDockerCache to compute SHA-256 of Dockerfile content and persist cache to .nogit/tsdocker_support.json
- Add ICacheEntry and ICacheData interfaces and a cached flag to IBuildCommandOptions
- Integrate cached mode in TsDockerManager: skip builds on cache hits, verify image presence, record builds on misses, and still perform dependency tagging
- Expose --cached option in CLI to enable the cached build flow
- Cache records store contentHash, imageId, buildTag and timestamp
## 2026-02-06 - 1.7.0 - feat(cli)
add CLI version display using commitinfo