Skip to content

Commit

Permalink
Add tag push and manifest fetch
Browse files Browse the repository at this point in the history
Signed-off-by: Terry Howe <[email protected]>
  • Loading branch information
TerryHowe committed Dec 27, 2024
1 parent a8a5ea0 commit 6ea436b
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions versioned_docs/version-1.3.0-beta.1/how_to_guides/multiarch.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,48 @@ Pushed [registry] localhost:15000/oras:v1
Digest: sha256:0fd4ac889c6f1f3e4fbb1c88b0cc18b97176bf7fd0841ac9c5264d20dd54e2d8
```

You may also create a multi-architecture manfiest with tags:

Check failure on line 59 in versioned_docs/version-1.3.0-beta.1/how_to_guides/multiarch.mdx

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Vale.Spelling] Did you really mean 'manfiest'? Raw Output: {"message": "[Vale.Spelling] Did you really mean 'manfiest'?", "location": {"path": "versioned_docs/version-1.3.0-beta.1/how_to_guides/multiarch.mdx", "range": {"start": {"line": 59, "column": 42}}}, "severity": "ERROR"}
```console
$ oras manifest index create localhost:15000/oras:v1 linux_arm64 linux_amd64
Fetching linux_arm64
Fetched sha256:302df4334cffe5132b6b81c06742be8ab3345bff3ce922662bc8674e79113bfd linux_arm64
Fetching linux_amd64
Fetched sha256:e5b0ffe309a91893d4423f09e82410364607fd749ea2f93dd1c286d718d9c1e4 linux_amd64
Packed 0fd4ac889c6f application/vnd.oci.image.index.v1+json
Pushed [registry] localhost:15000/oras:v1
Digest: sha256:0fd4ac889c6f1f3e4fbb1c88b0cc18b97176bf7fd0841ac9c5264d20dd54e2d8
```

## View the multi-architecture manfiest

Check failure on line 71 in versioned_docs/version-1.3.0-beta.1/how_to_guides/multiarch.mdx

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Vale.Spelling] Did you really mean 'manfiest'? Raw Output: {"message": "[Vale.Spelling] Did you really mean 'manfiest'?", "location": {"path": "versioned_docs/version-1.3.0-beta.1/how_to_guides/multiarch.mdx", "range": {"start": {"line": 71, "column": 32}}}, "severity": "ERROR"}

View the generated manifest:
```console
$ oras manifest fetch localhost:15000/oras:v1 --pretty
{
"schemaVersion": 2,
"mediaType": "application/vnd.oci.image.index.v1+json",
"manifests": [
{
"mediaType": "application/vnd.oci.image.manifest.v1+json",
"digest": "sha256:302df4334cffe5132b6b81c06742be8ab3345bff3ce922662bc8674e79113bfd",
"size": 590,
"platform": {
"architecture": "arm64",
"os": "linux"
}
},
{
"mediaType": "application/vnd.oci.image.manifest.v1+json",
"digest": "sha256:e5b0ffe309a91893d4423f09e82410364607fd749ea2f93dd1c286d718d9c1e4",
"size": 590,
"platform": {
"architecture": "amd64",
"os": "linux"
}
}
]
}
```
## Download your platform specific artifact

Pull the artifact to that directory:
Expand Down

0 comments on commit 6ea436b

Please sign in to comment.