Skip to content

Commit

Permalink
add Artifactory to compatible OCI registries
Browse files Browse the repository at this point in the history
Signed-off-by: lcmartin <luis.martinez@collins.com>
  • Loading branch information
lcmartin committed Sep 15, 2024
1 parent d45e83f commit c57b7bd
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions versioned_docs/version-1.2/compatible_oci_registries.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ We're happy to promote all usage, as well as provide feedback.*
- [Docker Hub](#docker-hub)
- [Zot Registry](#zot-registry)
- [Red Hat Quay](#red-hat-quay)
- [Artifactory](#)

### CNCF Distribution

Expand Down Expand Up @@ -343,5 +344,25 @@ oras push quay.io/$USER/$REPOSITORY/myartifact:v1 --artifact-type application/te
oras pull quay.io/$USER/$REPOSITORY/myartifact:v1
```

### [Artifactory](https://jfrog.com/artifactory/)

- [Authenticating with Artifactory](https://jfrog.com/help/r/jfrog-platform-administration-documentation/access-tokens)

```
echo $ARTIFACTORY_PAT | oras login artifactory.your-company.com -u ARTIFACTORY_USERNAME --password-stdin
```

- Pushing an artifact to Artifactory

```
oras push artifactory.your-company.com/$ARTIFACTORY_OCI_REPOSITORY/myartifact:v1 --artifact-type application/text ./myartifact.txt
```

- Pulling an artifact from Artifactory

```
oras pull artifactory.your-company.com/$ARTIFACTORY_OCI_REPOSITORY/myartifact:v1
```

[artifacts]: https://github.com/opencontainers/artifacts
[distribution-spec]: https://github.com/opencontainers/distribution-spec/

0 comments on commit c57b7bd

Please sign in to comment.