Skip to content

Commit

Permalink
Fix build cache_from option
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin De Jong <[email protected]>
  • Loading branch information
kevindejong authored and ndeloof committed Sep 30, 2021
1 parent d2af460 commit 7365917
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/compose/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -81,6 +80,8 @@ func (s *composeService) build(ctx context.Context, project *types.Project, opti
Attrs: map[string]string{"ref": image},
})
}

opts[imageName] = buildOptions
}
}

Expand Down

0 comments on commit 7365917

Please sign in to comment.