Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub Container Registry Implementor #241

Merged
merged 4 commits into from
Mar 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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