Browse Source

Fix build image label mapping

Signed-off-by: Guillaume Tardif <[email protected]>
Guillaume Tardif 4 years ago
parent
commit
8c99bb2c29
1 changed files with 1 additions and 1 deletions
  1. 1 1
      local/compose/build.go

+ 1 - 1
local/compose/build.go

@@ -189,7 +189,7 @@ func (s *composeService) toBuildOptions(service types.ServiceConfig, contextPath
 		Target:    service.Build.Target,
 		Target:    service.Build.Target,
 		Exports:   []bclient.ExportEntry{{Type: "image", Attrs: map[string]string{}}},
 		Exports:   []bclient.ExportEntry{{Type: "image", Attrs: map[string]string{}}},
 		Platforms: plats,
 		Platforms: plats,
-		Labels:    service.Labels,
+		Labels:    service.Build.Labels,
 	}, nil
 	}, nil
 }
 }