Deploy a cloud-native ASP.NET Core microservice with GitHub Actions

Intermediate
Developer
DevOps Engineer
Solution Architect
.NET
ASP.NET Core
.NET Core
Azure
Container Registry
Kubernetes Service
GitHub

Implement GitHub Actions to build a container image and deploy to Azure Kubernetes Service.

Learning objectives

In this module, you will:

  • Authenticate GitHub Actions to a container registry.
  • Securely store sensitive information used by the GitHub Actions.
  • Implement a GitHub Action to build the container image for a microservice.
  • Modify and commit the microservice code to trigger a build.
  • Implement a GitHub Action to deploy a container to a Kubernetes cluster.
  • Modify and commit a Helm chart to trigger a deployment.
  • Revert the microservice to a previous deployment.

Prerequisites

  • Conceptual knowledge of DevOps practices at the beginner level
  • Conceptual knowledge of containers and AKS at the beginner level
  • Access to an Azure subscription with Owner privilege
  • Access to a GitHub account
  • Ability to run development containers in Visual Studio Code or GitHub Codespaces