Fix build cache_from option
Signed-off-by: Kevin De Jong <kevin@tinymile.ai>
This commit is contained in:
parent
d2af460d81
commit
7365917244
|
|
@ -69,7 +69,6 @@ func (s *composeService) build(ctx context.Context, project *types.Project, opti
|
||||||
buildOptions.Pull = options.Pull
|
buildOptions.Pull = options.Pull
|
||||||
buildOptions.BuildArgs = mergeArgs(buildOptions.BuildArgs, args)
|
buildOptions.BuildArgs = mergeArgs(buildOptions.BuildArgs, args)
|
||||||
buildOptions.NoCache = options.NoCache
|
buildOptions.NoCache = options.NoCache
|
||||||
opts[imageName] = buildOptions
|
|
||||||
buildOptions.CacheFrom, err = buildflags.ParseCacheEntry(service.Build.CacheFrom)
|
buildOptions.CacheFrom, err = buildflags.ParseCacheEntry(service.Build.CacheFrom)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
@ -81,6 +80,8 @@ func (s *composeService) build(ctx context.Context, project *types.Project, opti
|
||||||
Attrs: map[string]string{"ref": image},
|
Attrs: map[string]string{"ref": image},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
opts[imageName] = buildOptions
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue