github-actions

Deploy to AKS

Deploy a docker image by sha to a specific service environment. Optionally after deployment

If using Google Cloud then GCP_PROJECT_ID abd GCP_WIP variables must be set in the service Makefile.

OIDC

Federated credentials must be set up to allow the action to authenticate to Azure and kubernetes

Inputs

Example

jobs:
  main:
    ...
    permissions:
      id-token: write # Required for OIDC authentication to Azure
      ...

    steps:
    - name: Deploy App to Review
      id: deploy_review
      uses: DFE-Digital/github-actions/deploy-to-aks@master
      with:
        azure-client-id: $
        azure-subscription-id: $
        azure-tenant-id: $
        environment: review
        pr-number: $
        sha: $
        healthcheck: 'healthcheck/all'
        db-seed: true
        smoke-test: true
        gcp-wip: $
        gcp-project-id: $