使用 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 扩展。
Get started with Azure
Choose the Azure account that's right for you. Pay as you go or try Azure free for up to 30 days. Sign up.