Skip to content

Failed to push or attach annotation file #664

Answered by qweeah
FeynmanZhou asked this question in Q&A
Discussion options

You must be logged in to vote

The format of manifest annotation file test.json is not right, the right format is displayed as below:

{
  ...
  "<filename>": {
    "<annotation_key>": "annotation_value"
  }
}

where <filename> can be $manifest, $config or name of any to-be-uploaded files.

For example, if you need to add "name":"John" to pushed manifest, then test.json should be like:

{"$manifest":{"name":"John"}}

Detailed doc: https://oras.land/cli/4_manifest_annotations/

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by qweeah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants