rename method for clarity

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2020-11-27 12:05:57 +01:00
parent 3ff6923d2e
commit b42b61e307
No known key found for this signature in database
GPG Key ID: 9858809D6F8F6E7E
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ func (s *composeService) ensureImagesExists(ctx context.Context, project *types.
}
}
if service.Build != nil {
opts[service.Name] = s.buildImage(service, project.WorkingDir)
opts[service.Name] = s.toBuildOptions(service, project.WorkingDir)
continue
}
@ -102,7 +102,7 @@ func (s *composeService) build(ctx context.Context, project *types.Project, opts
return err
}
func (s *composeService) buildImage(service types.ServiceConfig, contextPath string) build.Options {
func (s *composeService) toBuildOptions(service types.ServiceConfig, contextPath string) build.Options {
var tags []string
if service.Image != "" {
tags = append(tags, service.Image)