使用 GitHub Actions 和 Azure Pipelines 自动部署云原生 .NET 微服务

中级
开发人员
DevOps 工程师
解决方案架构师
ASP.NET Core
Azure
Azure 容器注册表
Azure Kubernetes 服务 (AKS)
GitHub

使用 CI/CD 管道生成容器映像并将其部署到 Azure Kubernetes 服务(AKS)。

学习目标

本模块指导你完成以下步骤:

  • 为 GitHub Actions 进行容器注册表身份验证。
  • 安全地存储 GitHub Actions 使用的敏感信息。
  • 实施操作以构建微服务的容器镜像。
  • 修改微服务代码并提交以触发构建。
  • 实施一个操作,将更新的容器部署到 Azure Kubernetes 服务 (AKS) 群集。
  • 将微服务还原到以前的部署。
  • 实现 Azure Pipelines 以生成微服务并将其部署到 Azure Kubernetes 服务 (AKS) 群集。

先决条件

  • DevOps 实践的概念知识。
  • 容器、Docker 和 AKS 的概念知识。
  • 有权访问具有 所有者 权限的 Azure 订阅。
  • 有权访问 GitHub 帐户。
  • 访问 Azure DevOps 组织。
  • 能够在 Visual Studio Code 或 GitHub Codespaces 中运行 开发容器 ,包括 Docker 和已安装必需的 Visual Studio Code 扩展。

Azure 入门

选择适合你的 Azure 帐户。 即用即付或在最长 30 天内免费试用 Azure。 注册。