add support for cache_to with bake

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2025-06-21 19:54:45 +02:00 committed by Nicolas De loof
parent f7825a56bf
commit 2dde5faeb8

View File

@ -213,8 +213,8 @@ func (s *composeService) doBuildBake(ctx context.Context, project *types.Project
Labels: build.Labels,
Tags: append(build.Tags, api.GetImageNameOrDefault(service, project.Name)),
CacheFrom: build.CacheFrom,
// CacheTo: TODO
CacheFrom: build.CacheFrom,
CacheTo: build.CacheTo,
Platforms: build.Platforms,
Target: build.Target,
Secrets: toBakeSecrets(project, build.Secrets),