Skip to content

Commit 12e0ac8

Browse files
neersightedndeloof
authored andcommitted
pkg/compose/publish: use empty config descriptor mediaType
Signed-off-by: Bjorn Neergaard <[email protected]>
1 parent a6b7d78 commit 12e0ac8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pkg/compose/publish.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func (s *composeService) publish(ctx context.Context, project *types.Project, re
7171
Digest: digest.FromString(string(f)),
7272
Size: int64(len(f)),
7373
Annotations: map[string]string{
74-
"com.docker.compose": api.ComposeVersion,
74+
"com.docker.compose.version": api.ComposeVersion,
7575
},
7676
}
7777
layers = append(layers, layer)
@@ -98,12 +98,9 @@ func (s *composeService) publish(ctx context.Context, project *types.Project, re
9898
return err
9999
}
100100
configDescriptor := v1.Descriptor{
101-
MediaType: "application/vnd.docker.compose.project",
101+
MediaType: "application/vnd.oci.empty.v1+json",
102102
Digest: digest.FromBytes(emptyConfig),
103103
Size: int64(len(emptyConfig)),
104-
Annotations: map[string]string{
105-
"com.docker.compose.version": api.ComposeVersion,
106-
},
107104
}
108105
err = resolver.Push(ctx, named, configDescriptor, emptyConfig)
109106
if err != nil {

0 commit comments

Comments
 (0)