Skip to content

fharris/oci-github-actions

Repository files navigation

OCI CLI and Git Hub Actions - Capex Free Exercises

Let's play and learn:

1 - Creating Container Instances

2 - Listing k8s Serverless and Deploying Apps

3 - Creating and Invoking Functions

4 - OKE OpenID Connect Authentication

Update your cluster with the following command:

oci ce cluster update --cluster-id CLUSTER_OCID --from-json file://./update.json

The content of the update.json file is below. Replace fharris with your github account and oci-github-actions with your repo:

{
  "options": {
    "openIdConnectTokenAuthenticationConfig": {
      "isOpenIdConnectAuthEnabled": true,
      "clientId": "oke-kubernetes-cluster",
      "issuerUrl": "https://token.actions.githubusercontent.com",
      "usernameClaim": "sub",
      "usernamePrefix": "actions-oidc:",
      "requiredClaim": [
        "repository=fharris/oci-github-actions",
        "workflow=oke-oidc",
        "ref=refs/heads/main"
      ],
      "caCertificate": null,
      "signingAlgorithms": [
        "RS256"
      ]
    }
  }
}

About

Using OCI Github Actions with Oracle Cloud Native services

Resources

Stars

Watchers

Forks