feat: cache dockerfile images through warmer (#2499)

* feat: cache dockerfile images through warmer

* Fix logical error in conditional statement

* Addressed review feedback

1. Updated help text for the --build-arg flag to indicate it should be used with the dockerfile flag.
2. Updated the documentation to include the optional --build-arg flag.
3. Added unit tests for `ParseDockerfile`, covering scenarios for missing Dockerfile, invalid Dockerfile, single stage Dockerfile, multi-stage Dockerfile and Args Dockerfile

---------

Co-authored-by: 连奔驰 <benchi.lian@thoughtworks.com>
This commit is contained in:
alexezio
2023-06-21 12:00:22 -07:00
committed by GitHub
co-authored by 连奔驰
parent 7cd39d14e3
commit 0743c19176
5 changed files with 232 additions and 3 deletions
+2
View File
@@ -162,4 +162,6 @@ type WarmerOptions struct {
CustomPlatform string
Images multiArg
Force bool
DockerfilePath string
BuildArgs multiArg
}