> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ale.run/llms.txt
> Use this file to discover all available pages before exploring further.

# GitHub Container Registry

> GitHub Container Registryを接続するガイドです。

> エールでビルドされたイメージをアップロードするリポジトリと、デプロイ過程で使用するリポジトリを**GitHub Container Registry**に設定できます。

***

## Personal Access Tokenの作成

<Frame>
  <img className="block rounded-md" src="https://files.cloudtype.io/ale-docs/operations/images/ghcr-01.png" />
</Frame>

> GitHubアカウントの**Settings**にアクセスした後、[Developer settings > Personal access tokens (classic) ページ](https://github.com/settings/tokens)で`Generate new token > Generate new token(classic)`ボタンでトークンを作成してください。

## 権限の付与とトークンの発行

<Frame>
  <img className="block rounded-md" src="https://files.cloudtype.io/ale-docs/operations/images/ghcr-02.png" />
</Frame>

> 以下の権限を付与し、`Generate token`をクリックしてください。

* **repo**
* **write:packages**
* **admin:public\_key**

<Frame>
  <img className="block rounded-md" src="https://files.cloudtype.io/ale-docs/operations/images/ghcr-03.png" />
</Frame>

> トークン生成が完了すると、トークン値が表示されます。トークンは作成時に初回1回のみ値を確認できます。

## エールへの接続

<Frame>
  <img className="block rounded-md" src="https://files.cloudtype.io/ale-docs/operations/images/ja/ghcr-04.png" />
</Frame>

> 運用システムで、クラスターページの **設定** タブに移動し、`コンテナリポジトリを接続` をクリックします。表示されるモーダルで、以下の値を入力し、`接続` をクリックします。

* **ストレージプロバイダー** : GitHub Container Registry
* **GitHubアカウント** : GitHub ID
* **パーソナルアクセストークン(PAT)** : GitHubで作成したPersonal Access Token
