From ff5544e9606870e6391015c850bb65cb5d4e951e Mon Sep 17 00:00:00 2001 From: Mark Phelps Date: Mon, 15 Mar 2021 10:40:13 -0400 Subject: [PATCH 1/3] Add GitHub Container Registry Implementor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 👋🏻 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! --- implementors.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/implementors.md b/implementors.md index c777520b7..bf9a463e6 100644 --- a/implementors.md +++ b/implementors.md @@ -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 Container Registry](#github-container-registry) ## Artifact Types Using ORAS @@ -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 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. From 0b21fb0e5101af05d9c9c4691f5b7dc692ceee85 Mon Sep 17 00:00:00 2001 From: Mark Phelps Date: Mon, 15 Mar 2021 11:03:01 -0400 Subject: [PATCH 2/3] Branding update --- implementors.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/implementors.md b/implementors.md index bf9a463e6..753bed167 100644 --- a/implementors.md +++ b/implementors.md @@ -258,7 +258,7 @@ ACR Artifact Documentation: [aka.ms/acr/artifacts](https://aka.ms/acr/artifacts) --media-type application/vnd.unknown.layer.v1+txt ``` -### [GitHub Container Registry (GHCR)](https://docs.github.com/en/packages/guides/about-github-container-registry) +### [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) From 202d4f84cd76beb4b69718903ddc7342d7407503 Mon Sep 17 00:00:00 2001 From: Mark Phelps Date: Mon, 15 Mar 2021 11:03:49 -0400 Subject: [PATCH 3/3] branding v2 --- implementors.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/implementors.md b/implementors.md index 753bed167..7b8692ca0 100644 --- a/implementors.md +++ b/implementors.md @@ -12,7 +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 Container Registry](#github-container-registry) +- [GitHub Packages container registry](#github-container-registry) ## Artifact Types Using ORAS