使用 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 延伸模組。

開始使用 Azure

選擇適合您的 Azure 帳戶。 隨用隨付或免費試用 Azure 最多 30 天。 註冊。