mirror of
https://github.com/docker/compose.git
synced 2026-02-09 01:59:22 +08:00
Fix build cache_from option
Signed-off-by: Kevin De Jong <kevin@tinymile.ai>
This commit is contained in:
committed by
Nicolas De loof
parent
d2af460d81
commit
7365917244
@@ -69,7 +69,6 @@ func (s *composeService) build(ctx context.Context, project *types.Project, opti
|
||||
buildOptions.Pull = options.Pull
|
||||
buildOptions.BuildArgs = mergeArgs(buildOptions.BuildArgs, args)
|
||||
buildOptions.NoCache = options.NoCache
|
||||
opts[imageName] = buildOptions
|
||||
buildOptions.CacheFrom, err = buildflags.ParseCacheEntry(service.Build.CacheFrom)
|
||||
if err != nil {
|
||||
return err
|
||||
@@ -81,6 +80,8 @@ func (s *composeService) build(ctx context.Context, project *types.Project, opti
|
||||
Attrs: map[string]string{"ref": image},
|
||||
})
|
||||
}
|
||||
|
||||
opts[imageName] = buildOptions
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user