浏览代码

Fix build image label mapping

Signed-off-by: Guillaume Tardif <[email protected]>
Guillaume Tardif 4 年之前
父节点
当前提交
8c99bb2c29
共有 1 个文件被更改,包括 1 次插入1 次删除
  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,
 		Exports:   []bclient.ExportEntry{{Type: "image", Attrs: map[string]string{}}},
 		Platforms: plats,
-		Labels:    service.Labels,
+		Labels:    service.Build.Labels,
 	}, nil
 }