Skip to content
srikanth-pusarla edited this page Aug 6, 2020 · 5 revisions

Steps to set up github-action with acr and k8s

ACR:

  1. Create Azure container Registry through Azure Cli or Azure Portal.
  2. Create secrets for Azure Container Registry in Github ACR = "Login server",REGISTRY_USERNAME and REGISTRY_PASSWORD

AKS:

  1. Create Azure Kubernetes Service through Azure Cli or Azure Portal.
  2. Run the command in Azure cli to create service principal az ad sp create-for-rbac --name "myApp" --role contributor
    --scopes /subscriptions/{subscription-id}/resourceGroups/{resource-group}
    --sdk-auth ("Note:Replace the subscription-id and resource group values")
  3. The output is the role assignment credentials that provide access to your Service. Copy this JSON object, which you can use to authenticate from GitHub with the secret named "AZURE_CREDENTIALS"
Clone this wiki locally