-
Notifications
You must be signed in to change notification settings - Fork 137
Configuring Container Registry
The Continuous Delivery system can be configured to publish the container images to a container registry.
To publish to GitHub Container Registry, configure the following variable in GitHub:
-
REGISTRY
with valueghcr.io
To publish to other container registry (e.g. Quay.io), configure the following variables and secrets in GitHub:
-
variables:
-
REGISTRY
(e.g.quay.io
) -
REGISTRY_NAMESPACE
(e.g.dogtagpki
)
-
-
secrets:
-
REGISTRY_USERNAME
(e.g. robot account name) -
REGISTRY_PASSWORD
(e.g. robot account token)
-
To reset the configuration simply remove the variables and secrets.
Availability: Since PKI 11.4
-
Go to Account Settings → Repositories.
-
Click Create New Repository.
-
Enter a name for the repository (e.g.
pki-dist
). -
Select Public.
-
Click Create Public Repository.
-
Go to Account Settings → Robot Accounts.
-
Click Create Robot Account.
-
Enter a name for the robot account (e.g.
github
). -
Click Create robot account.
-
Provide Write permissions to the relevant repositories (e.g.
pki-dist
). -
Click Add permissions.
-
Go to Account Settings → Robot Accounts.
-
Click the robot account name (e.g.
dogtagpki+github
). -
Click Robot Account.
-
Copy the robot account token.
-
Go to Settings → Secrets and variables → Actions.
-
Click New repository secret.
-
Add
REGISTRY_USERNAME
andREGISTRY_PASSWORD
secrets. -
Click Variables tab.
-
Click New repository variable.
-
Add
REGISTRY
andREGISTRY_NAMESPACE
variables.
-
Go to Settings → Secrets and variables → Actions.
-
Click Remove secret next to
REGISTRY_USERNAME
andREGISTRY_PASSWORD
. -
Click Variables tab.
-
Click Delete variable next to
REGISTRY
andREGISTRY_NAMESPACE
.
Tip
|
To find a page in the Wiki, enter the keywords in search field, press Enter, then click Wikis. |