Skip to content
This repository was archived by the owner on Nov 6, 2019. It is now read-only.

Files

Latest commit

 

History

History

aks

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

GitHub Action for deploying to Azure K8S Service

Usage

action "Deploy to Azure Kubernetes Service" {
  uses = "Azure/github-actions/aks@master"
  secrets = ["DOCKER_PASSWORD", "KUBE_CONFIG_DATA"]
  env = {
    AKS_CLUSTER_NAME = "<AKS Cluster Name>"
    DOCKER_USERNAME = "<Docker Registry username>"
    DOCKER_REGISTRY_URL = "<Docker Registry URL>"
    CONTAINER_IMAGE_NAME = "<Container Image Name>" 
  }
}

Secrets

  • DOCKER_PASSWORDOptional if public registry or if trust has been established with AKS. This is the password used to log in to your Docker registry.
  • KUBE_CONFIG_DATA - Optional. "kubectl config" file content with credentials for Kubernetes to access the cluster. If we use this option, we wont need ["Azure Login"] action as a precursor to this one.

Environment variables

  • AKS_CLUSTER_NAMERequired
  • DOCKER_REGISTRY_URLRequired
  • CONTAINER_IMAGE_NAMERequired
  • DOCKER_USERNAMEOptional if public registry or if trust has been established with AKS. This is the username used to log in to your Docker registry.
  • CONTAINER_IMAGE_TAGOptional ( default value = "latest")
  • HELM_RELEASE_NAME - Optional ( default value = "aks-deploy")
  • HELM_CHART_PATH - Optional ( default value = ./default-chart)