Prerequisites
Before enabling GitHub Actions, make sure you have completed the following steps:
-
Create your Azure storage account for storing workflow artifacts. GitHub Actions stores its data as block blobs, and two storage account types are supported:
-
A general-purpose storage account (also known as
general-purpose v1
orgeneral-purpose v2
) using the standard performance tier.Warning: Using the premium performance tier with a general-purpose storage account is not supported. The standard performance tier must be selected when creating the storage account, and it cannot be changed later.
-
A BlockBlobStorage storage account, which uses the premium performance tier.
For more information on Azure storage account types and performance tiers, see the Azure documentation.
-
-
Review the hardware requirements for GitHub Actions. For more information, see "Getting started with GitHub Actions for GitHub Enterprise Server."
-
TLS must be configured for your GitHub Enterprise Server instance's domain. For more information, see "Configuring TLS."
Note: 我们强烈建议您在 GitHub Enterprise Server 上配置 TLS,并有信任的机构签名的证书。 虽然自签名证书可以工作,但自托管的运行器需要额外的配置,不推荐用于生产环境。
-
如果您在 your GitHub Enterprise Server instance上配置了 HTTP 代理服务器 ,则必须添�
localhost
和127.0.0.1
到 HTTP 代理排除 列表中。 有关更改代理设置的更多信息,请参阅“配置出站 Web 代理服务器”。
Enabling GitHub Actions with Azure Blob storage
-
SSH 连接到 your GitHub Enterprise Server instance。 更多信息请参阅“访问管理 shell (SSH)。”
$ ssh -p 122 admin@HOSTNAME
-
Run the
ghe-actions-precheck
command to test your blob storage configuration. 更多信息请参阅“命令行实用程序”。 -
From an administrative account on GitHub Enterprise Server, in the upper-right corner of any page, click .
-
If you're not already on the "Site admin" page, in the upper-left corner, click Site admin.
-
在左侧边� �中,单击 管理控制台。
-
在左侧边� �中,单击 Actions(操作)。
-
选择 Enable GitHub Actions(启用 GitHub Actions)。
-
Under "Artifact & Log Storage", select Azure Blob Storage, and enter your Azure storage account's connection string. For more information on getting the connection string for your storage account, see the Azure documentation.
-
在左侧边� �下,单击 Save settings(保存设置)。
Note: Saving settings in the 管理控制台 restarts system services, which could result in user-visible downtime.
-
等待配置运行完毕。
Next steps
After the configuration run has successfully completed, GitHub Actions will be enabled on your GitHub Enterprise Server instance. For your next steps, such as managing GitHub Actions access permissions and adding self-hosted runners, return to "Getting started with GitHub Actions for GitHub Enterprise Server."