From ad9eb3b250dbc63a24a36a5cf4791b6d0b692b47 Mon Sep 17 00:00:00 2001 From: Pavol Gressa Date: Tue, 10 Nov 2020 16:19:17 +0100 Subject: [PATCH] Extend documentation by OCI OCIR --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/README.md b/README.md index d86c59b..10dd13f 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ ___ * [Google Container Registry (GCR)](#google-container-registry-gcr) * [Google Artifact Registry (GAR)](#google-artifact-registry-gar) * [AWS Elastic Container Registry (ECR)](#aws-elastic-container-registry-ecr) + * [OCI Oracle Cloud Infrastructure Registry (OCIR)](#oci-oracle-cloud-infrastructure-registry-ocir) * [Customizing](#customizing) * [inputs](#inputs) * [Keep up-to-date with GitHub Dependabot](#keep-up-to-date-with-github-dependabot) @@ -279,6 +280,33 @@ jobs: > Replace `` and `` with their respective values. +### OCI Oracle Cloud Infrastructure Registry (OCIR) +To push into OCIR in specific tenancy the [username](https://www.oracle.com/webfolder/technetwork/tutorials/obe/oci/registry/index.html#LogintoOracleCloudInfrastructureRegistryfromtheDockerCLI) +must be placed in format `/` (in case of federated tenancy use the format `/oracleidentitycloudservice/`). +For password [create an auth token](https://www.oracle.com/webfolder/technetwork/tutorials/obe/oci/registry/index.html#GetanAuthToken). Save username and token + [as a secrets](https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets#creating-encrypted-secrets-for-a-repository) in your GitHub repo. + +```yaml +name: ci + +on: + push: + branches: master + +jobs: + login: + runs-on: ubuntu-latest + steps: + - + name: Login to OCIR + uses: docker/login-action@v1 + with: + registry: .ocir.io + username: ${{ secrets.OCI_USERNAME }} + password: ${{ secrets.OCI_TOKEN }} +``` +> Replace `` with their respective values from [availability regions](https://docs.cloud.oracle.com/iaas/Content/Registry/Concepts/registryprerequisites.htm#Availab) + ## Customizing ### inputs