You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
srikanth-pusarla edited this page Aug 6, 2020
·
5 revisions
Steps to set up github-action with acr and k8s
ACR:
Create Azure container Registry through Azure Cli or Azure Portal.
Create secrets for Azure Container Registry in Github
ACR = "Login server",REGISTRY_USERNAME and REGISTRY_PASSWORD
AKS:
Create Azure Kubernetes Service through Azure Cli or Azure Portal.
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")
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"