Skip to content

Commit

Permalink
Add GitHub Container Registry Implementor (#241)
Browse files Browse the repository at this point in the history
* Add GitHub Container Registry Implementor

👋🏻 Hi from GitHub! We'd like to add our [Container Registry](https://docs.github.com/en/packages/guides/about-github-container-registry) implementation to your implementors guide.

Please let me know if there is anything else needed!

* Branding update

* branding v2
  • Loading branch information
Mark Phelps authored Mar 16, 2021
1 parent 193f99a commit ed267c1
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions implementors.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ See [OCI Artifacts][artifacts] for how to add OCI Artifacts support to your regi
- [Azure Container Registry](#azure-container-registry-acr)
- [Amazon Elastic Container Registry](#amazon-elastic-container-registry-ecr)
- [Google Artifact Registry](#google-artifact-registry-gar)
- [GitHub Packages container registry](#github-container-registry)

## Artifact Types Using ORAS

Expand Down Expand Up @@ -257,6 +258,28 @@ ACR Artifact Documentation: [aka.ms/acr/artifacts](https://aka.ms/acr/artifacts)
--media-type application/vnd.unknown.layer.v1+txt
```

### [GitHub Packages container registry (GHCR)](https://docs.github.com/en/packages/guides/about-github-container-registry)

- [Authenticating with GHCR](https://docs.github.com/en/packages/guides/pushing-and-pulling-docker-images#authenticating-to-github-container-registry)

```sh
echo $GITHUB_PAT | oras login https://ghcr.io -u GITHUB_USERNAME --password-stdin
```

- Pushing Artifacts to GHCR

```sh
oras push ghcr.io/${GITHUB_OWNER}/samples/artifact:1.0 \
./artifact.txt:application/vnd.unknown.layer.v1+txt
```

- Pulling Artifacts from GHCR

```sh
oras pull ghcr.io/${GITHUB_OWNER}/samples/artifact:1.0 \
--media-type application/vnd.unknown.layer.v1+txt
```

## Adding Your Registry or Artifact Type

Do you support [OCI Artifacts][artifacts] and would like your registry and/or project listed here? Please [submit a PR](https://github.com/deislabs/oras/pulls), using similar formatting above. We're happy to promote all usage, as well as feedback.
Expand Down

0 comments on commit ed267c1

Please sign in to comment.