By connecting a private container registry, you can deploy custom images using the Container template. This guide covers connecting to GitHub Container Registry, GCP Artifact Registry, and Docker Hub.
GitHub Container Registry
Go to your GitHub account Settings, then navigate to Developer settings > Personal access tokens (classic) page and click Generate new token > Generate new token(classic)
to create a token.
Grant the following permissions and click Generate token
:
Once generated, the token will be displayed. Note that you can only view the token value once during creation.
In the space settings’ add-on page, clickConnect Container Registry
. In the Container Registry Settings modal, enter the following values and clickConnect
to establish connection with GitHub Container Registry:
GCP Artifact Registry
Access the Artifact Registry service in the Google Cloud Console and click CREATE REPOSITORY
.
Enter a name for the repository and fill in the following values, then click CREATE
to create the repository.
Click on the created repository to retrieve the access URL in the format [region]-docker.pkg.dev/[GCP Project ID]/[Repository Name]
.
ale
.
Go to the IAM & Admin > Service Accounts page and click CREATE SERVICE ACCOUNT
.
Enter a recognizable Service Account Name and click CREATE AND CONTINUE
.
In the role selector, choose Artifact Registry Administrator and click DONE
to create the service account.
Click the icon on the right side of the service account and select Manage keys.
On the service account key management page, click ADD KEY > Create new key. In the modal, select JSON as the key type and click CREATE
to download the JSON key file.
In the space settings’ add-on page, clickConnect Container Registry
. In the Container Registry Settings modal, enter the following values and clickConnect
to establish connection with Google Cloud Artifact Registry:
Docker Hub
Create a Docker Hub account, then click your account name in the top right corner.
Navigate to Account Settings > Security and click New Access Token
.
Enter a descriptive name in the Access Token Description field to identify the token’s purpose or role, and select Read & Write for Access permissions. Note that the generated token can only be viewed once upon creation.
In the space settings’ add-on page, clickConnect Container Registry
. In the Container Registry Settings modal, enter the following values and clickConnect
to establish connection with Docker Hub:
You can deploy custom images by selecting the Container template in the deployment modal, accessed via or ⌘ + K
in the dashboard, and entering the required configuration values.
Container Image Address and Tag
Enter the image URL and tag of your image from the connected registry.
Port Number, Environment Variables, Start Command
Enter the settings for image deployment.
More Options
Resource Settings and Deploy
Deploy