此版本的 GitHub Enterprise 已停止服务 2021-09-23. 即使针对重大安全问题,也不会发布补丁。 要获得更好的性能、改进的安全性和新功能,请升级到 GitHub Enterprise 的最新版本。 如需升级方面的帮助,请联系 GitHub Enterprise 支持

GitHub Actions for GitHub Enterprise Server 使用入门

了解首次在 GitHub Enterprise Server 上启用和配置 GitHub Actions。

Site administrators can enable GitHub Actions and configure enterprise settings.

注:GitHub Enterprise Server 2.22 上的 GitHub Actions 支持是有限的公测版。 测试已结束。 GitHub Actions 现在一般可用于 GitHub Enterprise Server 3.0 或更新版本。 更多信息请参阅 GitHub Enterprise Server 3.0 发行说明


注: GitHub 托管的运行器目前在 GitHub Enterprise Server 上不受支持。 您可以在 GitHub 公共路线图 上查看有关未来支持计划的更多信息。

查看硬件注意事项

:GitHub Actions 作为有限测试版适用于 GitHub Enterprise Server 2.22。 如果您将现有 GitHub Enterprise Server 实例升级到 3.0 或更高版本,并且要配置 GitHub Actions,请注意,最低硬件要求有所增加。 更多信息请参阅“升级 GitHub Enterprise Server。”

您的 GitHub Enterprise Server 实例 可用的 CPU 和内存资源决定了 GitHub Actions 的最大作业吞吐量。

GitHub 的内部测试展示了具有系列 CPU 和内存配置的 GitHub Enterprise Server 实例的以下最大吞吐量。 您可能会看到不同的吞吐量,具体取决于实例的总体活动水平。

vCPU内存最大作业吞吐量
432 GB演示或轻量测试
864 GB25 个作业
16160 GB35 个作业
32256 GB100 个作业

如果您启用了 GitHub Actions,请查看用户的活动级别和实例上的自动化,并确保已为用户预配足够的 CPU 和内存。 有关监控 GitHub Enterprise Server 容量和性能的更多信息,请参阅“监控您的设备”。

有关 您的 GitHub Enterprise Server 实例 的最低硬件要求的更多信息,请参阅实例平台的硬件考虑因素。

有关为现有实例调整资源的更多信息,请参阅“增加存储容量”和“增加 CPU 或内存资源”。

外部存储要求

要在 GitHub Enterprise Server 上启用 GitHub Actions,您必须有权访问外部 Blob 存储。

GitHub Actions 使用 Blob 存储来存储工作流程运行生成的构件,如工作流程日志和用户上传的构建构件。 所需存储量取决于您使用 GitHub Actions 的情况。 仅支持单个外部存储配置,不能同时使用多个存储提供程序。

GitHub Actions 支持以下存储提供商:

  • Azure Blob 存储
  • Amazon S3
  • S3 兼容的 MinIO Gateway for NAS

注:只有这些是 GitHub 支持并可以提供帮助的存储提供程序。 由于 S3 API 的差异,其他 S3 API 兼容的存储提供程序难以正常工作。 联系我们 以请求支持额外的存储提供程序。

Amazon S3 权限

GitHub Actions 需要以下访问密钥的权限才可访问存储桶:

  • s3:PutObject
  • s3:GetObject
  • s3:ListBucketMultipartUploads
  • s3:ListMultipartUploadParts
  • s3:AbortMultipartUpload
  • s3:DeleteObject
  • s3:ListBucket

启用 GitHub Actions

GitHub Enterprise Server 2.22 上的 GitHub Actions 支持作为有限测试版提供。 要为实例配置 GitHub Actions ,请升级到 GitHub Enterprise Server 3.0 或更高版本。 更多信息请参阅 GitHub Enterprise Server 3.0 发行说明和“升级 GitHub Enterprise Server”。

延伸阅读

Networking considerations

If GitHub Actions is enabled for your enterprise, only HTTP proxies are supported. SOCK5 and HTTPS proxies and Polipo are not supported. For more information about using a proxy with GitHub Enterprise Server, see "Configuring an outbound web proxy server."

Reserved Names

When you enable GitHub Actions for your enterprise, two organizations are created: github and actions. If your enterprise already uses the github organization name, github-org (or github-github-org if github-org is also in use) will be used instead. If your enterprise already uses the actions organization name, github-actions (or github-actions-org if github-actions is also in use) will be used instead. Once actions is enabled, you won't be able to use these names anymore.