Skip to content

Commit a00d946

Browse files
committed
fix: enable caching if either cache property is set
1 parent b5101f9 commit a00d946

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

envbuilder.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ func Run(ctx context.Context, options Options) error {
592592
ForceUnpack: true,
593593
BuildArgs: buildParams.BuildArgs,
594594
CacheRepo: options.CacheRepo,
595-
Cache: options.CacheRepo != "",
595+
Cache: options.CacheRepo != "" || options.BaseImageCacheDir != "",
596596
DockerfilePath: buildParams.DockerfilePath,
597597
DockerfileContent: buildParams.DockerfileContent,
598598
RegistryOptions: config.RegistryOptions{

0 commit comments

Comments
 (0)