使用 GitHub Actions 和 Azure Pipelines 自動部署雲端原生 .NET 微服務

中級
開發人員
DevOps 工程師
解決方案架構設計師
ASP.NET Core
Azure
Azure Container Registry
Azure Kubernetes Service (AKS)
GitHub

使用 CI/CD 管線來建置容器映像,並將其部署至 Azure Kubernetes Service (AKS)。

學習目標

本課程模組會引導您完成下列步驟:

  • 向容器登錄驗證 GitHub Actions。
  • 安全地儲存 GitHub Actions 使用的敏感性資訊。
  • 實作動作以為微服務建置容器映像。
  • 修改並認可微服務程式碼以觸發組建。
  • 實作動作,將更新的容器部署到 Azure Kubernetes Service (AKS) 叢集。
  • 將微服務還原成先前的部署。
  • 實作 Azure Pipelines,以建置微服務並將之部署至 Azure Kubernetes Service (AKS) 叢集。

必要條件

  • DevOps 做法的概念知識。
  • 容器、Docker 和 AKS 的概念知識。
  • 使用擁有者權限存取 Azure 訂用帳戶。
  • 對 GitHub 帳戶的存取權。
  • 存取 Azure DevOps 組織。
  • 能夠在 Visual Studio Code 或 GitHub Codespaces 中執行開發容器的能力,包括 Docker 和已安裝必要 Visual Studio Code 擴充功能。