Skip to main content

Enabling GitHub Packages with Azure Blob Storage

Set up GitHub Packages with Azure Blob Storage as your external storage.

Warnings:

  • It is critical that you set the restrictive access policies you need for your storage bucket, because GitHub does not apply specific object permissions or additional access control lists (ACLs) to your storage bucket configuration. For example, if you make your bucket public, data in the bucket will be accessible on the public internet. If restrictions by IP address have been set up, please include IP addresses for 你的 GitHub Enterprise Server 实例 and the end users who will be using the 你的 GitHub Enterprise Server 实例.
  • We recommend using a dedicated bucket for GitHub Packages, separate from the bucket you use for GitHub Actions storage.
  • Make sure to configure the bucket you'll want to use in the future. We do not recommend changing your storage after you start using GitHub Packages.

Prerequisites

Before you can enable and configure GitHub Packages on 你的 GitHub Enterprise Server 实例, you need to prepare your Azure Blob storage bucket. To prepare your Azure Blob storage bucket, we recommend consulting the official Azure Blob storage docs at the official Azure Blob Storage documentation site.

Enabling GitHub Packages with Azure Blob Storage

  1. 在 GitHub Enterprise Server 上的管理帐户中,在任一页面的右上角,单击

  2. 如果你尚未在“站点管理员”页上,请在左上角单击“站点管理员”。

  3. 在“ 站点管理”边栏中,单击“管理控制台”。

  4. 在左侧边栏中,单击“包”。

  5. 在“GitHub Packages”下选择“启用 GitHub Packages”复选框。

  6. Under "Packages Storage", select Azure Blob Storage and enter your Azure container name for your packages storage bucket and connection string.

    You must create a storage container prior to setting the container name and connection string.

    Note: You can find your Azure Connection String by navigating to the Access Key menu in your Azure storage account.

    Usage of a SAS Token or SAS URL as connection string is not currently supported.

  7. 在“设置”边栏下,单击“保存设置”。

    注意:保存 管理控制台 中的设置会重启系统服务,这可能会导致用户可察觉的停机时间。

  8. 等待配置运行完毕。

Next steps

下一步是,你可自定义你想要在 你的 GitHub Enterprise Server 实例 上提供给最终用户的包生态系统。 有关详细信息,请参阅“Configuring package ecosystem support for your enterprise”。

有关在 GitHub 上使用 GitHub Packages 的概述,请参阅“Getting started with GitHub Packages for your enterprise”。