portainer-docs/admin/registries/add/ghcr.md

2.3 KiB

Add a GitHub registry

{% hint style="info" %} The GitHub registry option is only available in Portainer Business Edition. {% endhint %}

From the menu select Registries then click Add registry and select GitHub as the registry provider.

Complete the form, using the table below as a guide.

Field/Option Overview
Name Enter the name you'd like to use in Portainer for your registry.
Username Enter the username you use to log into your GitHub registry.
Personal Access Token Enter the personal access token that corresponds to the username above. Your personal access token will need the delete:packages, repo, and write:packages scopes assigned.
Use organisation registry Toggle this on if your registry is part of a Github organization.
Organisation name Enter the name of your GitHub organization.

{% hint style="info" %} For more information about creating a personal access token, see GitHub's own documentation. {% endhint %}

When the form is complete, click Add registry.