Configuring Container Registry - dogtagpki/pki GitHub Wiki
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:
-
REGISTRYwith 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_USERNAMEandREGISTRY_PASSWORDsecrets. -
Click Variables tab.
-
Click New repository variable.
-
Add
REGISTRYandREGISTRY_NAMESPACEvariables.
-
Go to Settings → Secrets and variables → Actions.
-
Click Remove secret next to
REGISTRY_USERNAMEandREGISTRY_PASSWORD. -
Click Variables tab.
-
Click Delete variable next to
REGISTRYandREGISTRY_NAMESPACE.