{"id":18708839,"url":"https://github.com/oracle-actions/login-ocir","last_synced_at":"2025-04-12T10:34:54.285Z","repository":{"id":65155623,"uuid":"381308496","full_name":"oracle-actions/login-ocir","owner":"oracle-actions","description":"Login to Oracle Cloud Infrastructure Registry (OCIR)","archived":false,"fork":false,"pushed_at":"2024-11-25T07:47:48.000Z","size":1731,"stargazers_count":9,"open_issues_count":5,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-04T04:01:32.219Z","etag":null,"topics":["actions","github-actions","ocir","oracle-cloud","oracle-cloud-infrastructure"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"upl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oracle-actions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-29T09:23:40.000Z","updated_at":"2025-01-29T21:18:23.000Z","dependencies_parsed_at":"2024-10-25T05:28:54.923Z","dependency_job_id":"734208ce-59cf-4158-a5b1-418acc84f99d","html_url":"https://github.com/oracle-actions/login-ocir","commit_stats":{"total_commits":24,"total_committers":3,"mean_commits":8.0,"dds":"0.16666666666666663","last_synced_commit":"8f6dbf8ceacdacb3b2c211232c81ab7b5592d09b"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-actions%2Flogin-ocir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-actions%2Flogin-ocir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-actions%2Flogin-ocir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-actions%2Flogin-ocir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oracle-actions","download_url":"https://codeload.github.com/oracle-actions/login-ocir/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248553791,"owners_count":21123521,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","github-actions","ocir","oracle-cloud","oracle-cloud-infrastructure"],"created_at":"2024-11-07T12:25:23.708Z","updated_at":"2025-04-12T10:34:53.774Z","avatar_url":"https://github.com/oracle-actions.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# login-ocir\n\nGitHub Action that logs into the Oracle Cloud Infrastructure Registry (OCIR) endpoint in the Oracle Cloud Infrastructure\n(OCI) region and using the credentials provided via the required environment variables.\n\nThe login credentials are provided to both the Docker and Podman container tools, so you may use either of them in the\nsubsequent workflow steps.\n\n## Required environment variables\n\nThe following [OCI CLI environment variables][1] must be defined for the `login-ocir` task to work:\n\n- `OCI_CLI_USER`\n- `OCI_CLI_TENANCY`\n- `OCI_CLI_FINGERPRINT`\n- `OCI_CLI_KEY_CONTENT`\n- `OCI_CLI_REGION`\n\nWe recommend using GitHub Secrets to store these values. If you have more than one OCI-related task, consider [defining\nyour environment variables][2] at the job or workflow level.\n\n## Inputs\n\n- `auth_token`: an Oracle-generated string that allow third-party services to authenticate to OCI service endpoints. See\n  [working with Auth Tokens][3] for details on how to create a token.\n\n## Outputs\n\n- `ocir_endpoint`\n- `ocir_username`\n\n## Sample workflow\n\nThis sample workflow uses the [`login-ocir`][3] action which uses the provided `OCI_AUTH_TOKEN` to login to OCIR as well\nas the [`get-ocir-repository`][4] action to retrieve the path of an existing repository.\n\n```yaml\njobs:\n  get-ocir-repository-test:\n    runs-on: ubuntu-22.04\n    name: Get OCIR Repository Test\n    env:\n      OCI_CLI_USER: ${{ secrets.OCI_CLI_USER }}\n      OCI_CLI_TENANCY: ${{ secrets.OCI_CLI_TENANCY }}\n      OCI_CLI_FINGERPRINT: ${{ secrets.OCI_CLI_FINGERPRINT }}\n      OCI_CLI_KEY_CONTENT: ${{ secrets.OCI_CLI_KEY_CONTENT }}\n      OCI_CLI_REGION: ${{ secrets.OCI_CLI_REGION }}\n    steps:\n      - name: Get or create an OCIR Repository\n        uses: oracle-actions/get-ocir-repository@v1.3.0\n        id: get-ocir-repository\n        with:\n          name: oraclelinux\n          compartment: ${{ secrets.OCI_COMPARTMENT_OCID }}\n\n      - name: Log into OCIR\n        uses: oracle-actions/login-ocir@v1.3.0\n        id: login-ocir\n        with:\n          auth_token: ${{ secrets.OCI_AUTH_TOKEN }}\n\n      - name: Tag and push a container image\n        id: tag-and-push-image\n        run: |\n          docker pull oraclelinux:8-slim\n          docker tag \"oraclelinux:8-slim\" \"${{ steps.get-ocir-repository.outputs.repo_path }}:8-slim\"\n          docker push \"${{ steps.get-ocir-repository.outputs.repo_path }}:8-slim\"\n```\n\nSee [`action.yml`](./action.yml) for more details.\n\n## Contributing\n\nWe welcome contributions from the community. Before submitting a pull request, please\n[review our contribution guide](./CONTRIBUTING.md).\n\n## Security\n\nPlease consult the [security guide](./SECURITY.md) for our responsible security vulnerability disclosure process.\n\n## License\n\nCopyright (c) 2021, 2022 Oracle and/or its affiliates.\n\nReleased under the Universal Permissive License v1.0 as shown at \u003chttps://oss.oracle.com/licenses/upl/\u003e.\n\n[1]: https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/clienvironmentvariables.htm\n[2]: https://docs.github.com/en/actions/learn-github-actions/environment-variables\n[3]: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm#Working\n[4]: https://github.com/oracle-actions/get-ocir-repository\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foracle-actions%2Flogin-ocir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foracle-actions%2Flogin-ocir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foracle-actions%2Flogin-ocir/lists"}