RSS Microsoft Teams 博客文章

在 Azure Container Apps 上运行 GitHub Actions Runner 并使用 KEDA 进行自动扩缩容

Follow
本指南介绍如何使用 KEDA 在 Azure Container Apps Jobs 上启动自托管的 GitHub Actions 运行器以实现自动扩缩容。该架构涉及开发人员触发工作流,随后由受 KEDA 监控的 GitHub API 进行处理。KEDA 触发 Azure Container App Jobs,启动临时容器并将其注册为运行器,执行任务后随即终止。这种方法提供了成本优化、对执行环境的控制以及对私有资源的网络访问能力。该设置需要 GitHub PAT、Azure 资源(如 ACR、Key Vault 和 Container Apps)以及 Docker 镜像。对于组织级运行器,建议使用运行器组。本指南详细说明了如何在 Azure 门户中创建这些资源、构建运行器的 Docker 镜像,以及配置 KEDA 以根据 GitHub Actions 作业队列对运行器进行扩缩容。
favicon
techcommunity.microsoft.com
Running GitHub Actions Runners on Azure Container Apps with KEDA Autoscaling