Skip to content
This repository was archived by the owner on Jul 18, 2023. It is now read-only.

Commit c3b001e

Browse files
committed
Add oci-reg mapping examples
Signed-off-by: Steve Lasker <[email protected]>
1 parent 25b008c commit c3b001e

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

artifact-manifest/artifact-manifest.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,43 @@ Artifacts that reference other artifacts must include an OCI Artifact Descriptor
7676

7777
Clients MAY choose to bind to specific digests, assuring they are testing and using the exact graph initially specified. Or, clients may choose to float to a newer version of a tag, benefiting from patches. In all cases, a Notary v2 signature may be used to assure the artifacts are true to their initial ownership and authors.
7878

79+
**Setting the default registry:**
80+
81+
```bash
82+
oci-reg default-registry registry.acme-rockets.io
83+
```
84+
85+
**Setting repository mappings for where to push and pull unqualified artifacts:**
86+
87+
`oci-reg.config`
88+
89+
```json
90+
{
91+
"root-namespace": "dev"
92+
}
93+
```
94+
95+
**Setting repository mappings for specific artifacts:**
96+
97+
`oci-reg.config`
98+
99+
```json
100+
{
101+
"default-registry": "registry.acme-rockets.io",
102+
"root-namespace": "prod",
103+
"repo-mappings": [
104+
{
105+
"repo": "wordpress-chart",
106+
"path": "/charts"
107+
},
108+
{
109+
"repo": "wordpress-cnab",
110+
"path": "/cnabs"
111+
}
112+
]
113+
}
114+
```
115+
79116
## Supported Artifact Types
80117

81118
Artifact manifest is intended to support the following artifact types:

0 commit comments

Comments
 (0)