Apply platform before hashing

Signed-off-by: Matthew Walowski <mattwalowski@gmail.com>
This commit is contained in:
Matthew Walowski 2023-09-15 11:22:35 -05:00 committed by Nicolas De loof
parent 4f694919ff
commit 8967df7a91
1 changed files with 4 additions and 0 deletions

View File

@ -186,6 +186,10 @@ func runHash(ctx context.Context, dockerCli command.Cli, opts configOptions) err
return err
}
if err := applyPlatforms(project, true); err != nil {
return err
}
if len(services) > 0 {
err = project.ForServices(services, types.IgnoreDependencies)
if err != nil {