Deploy Token
This page describes the process to add a new target to the dAIEdge-VLab.
Create a Deploy Token
A deployment token is used to give access of this repository to the Virtualab. This same token is used by the GitLab runner to access the container registry.
Location
Access the target repository in your GitLab. Then go to Setting > Repository Deploy tokens > Add token.
Name
Name the token as follows :
gitlab-deploy-token
The token must be named that way. By naming it gitlab-deploy-token
GitLab exposes automatically the username and the token in CI/CD variables.
The variables created are named as followed :
CI_DEPLOY_USER
: UsernameCI_DEPLOY_PASSWORD
: Token
Expiration date
Add an expiration date if wanted. To avoid any future problems, it is recommended to leave this field empty.
Access
Under the section Scopes, select only the following access :
- read_repository
- read_registry
- read_package_registry (if your project needs it)
Username
Leave the username empty.
Create and save
Create the deployment token and copy the username and the token for the step Container Registry Access.