Procházet zdrojové kódy

Fix build image label mapping

Signed-off-by: Guillaume Tardif <[email protected]>
Guillaume Tardif před 4 roky
rodič
revize
8c99bb2c29
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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
 }
 }