Skip to content

Commit

Permalink
pkg/compose/publish: use empty config descriptor mediaType
Browse files Browse the repository at this point in the history
Signed-off-by: Bjorn Neergaard <[email protected]>
  • Loading branch information
neersighted authored and ndeloof committed Sep 29, 2023
1 parent a6b7d78 commit 12e0ac8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pkg/compose/publish.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (s *composeService) publish(ctx context.Context, project *types.Project, re
Digest: digest.FromString(string(f)),
Size: int64(len(f)),
Annotations: map[string]string{
"com.docker.compose": api.ComposeVersion,
"com.docker.compose.version": api.ComposeVersion,
},
}
layers = append(layers, layer)
Expand All @@ -98,12 +98,9 @@ func (s *composeService) publish(ctx context.Context, project *types.Project, re
return err
}
configDescriptor := v1.Descriptor{
MediaType: "application/vnd.docker.compose.project",
MediaType: "application/vnd.oci.empty.v1+json",
Digest: digest.FromBytes(emptyConfig),
Size: int64(len(emptyConfig)),
Annotations: map[string]string{
"com.docker.compose.version": api.ComposeVersion,
},
}
err = resolver.Push(ctx, named, configDescriptor, emptyConfig)
if err != nil {
Expand Down

0 comments on commit 12e0ac8

Please sign in to comment.