Browse Source

Apply platform before hashing

Signed-off-by: Matthew Walowski <[email protected]>
Matthew Walowski 2 years ago
parent
commit
8967df7a91
1 changed files with 4 additions and 0 deletions
  1. 4 0
      cmd/compose/config.go

+ 4 - 0
cmd/compose/config.go

@@ -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 {