Skip to content

Commit

Permalink
Remove mediatype from artifact manifest
Browse files Browse the repository at this point in the history
Signed-off-by: Sajay Antony <[email protected]>
  • Loading branch information
sajayantony committed Sep 13, 2021
1 parent d3246ca commit abd6366
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/oras/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Example - Push file to the HTTP registry:
cmd.Flags().StringVarP(&opts.manifestAnnotations, "manifest-annotations", "", "", "manifest annotation file")
cmd.Flags().StringVarP(&opts.manifestExport, "export-manifest", "", "", "export the pushed manifest")
cmd.Flags().StringVarP(&opts.artifactType, "artifact-type", "", "", "artifact type")
cmd.Flags().StringVarP(&opts.artifactRefs, "artifact-reference", "", "", "artifact reference")
cmd.Flags().StringVarP(&opts.artifactRefs, "subject", "s", "", "subject artifact")
cmd.Flags().BoolVarP(&opts.pathValidationDisabled, "disable-path-validation", "", false, "skip path validation")
cmd.Flags().BoolVarP(&opts.verbose, "verbose", "v", false, "verbose output")
cmd.Flags().BoolVarP(&opts.debug, "debug", "d", false, "debug mode")
Expand Down
1 change: 1 addition & 0 deletions pkg/oras/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ func pack(provider content.Provider, descriptors []ocispec.Descriptor, opts *pus
artifact := *opts.artifact
artifact.Blobs = convertV1DescriptorsToV2(descriptors)
artifact.Annotations = opts.manifestAnnotations
mediaType = artifactspec.MediaTypeArtifactManifest
content = artifact
} else {
mediaType = ocispec.MediaTypeImageManifest
Expand Down

0 comments on commit abd6366

Please sign in to comment.