Generate Deploy Token
This page describes how to add a deploy token to your target repository.
Create a Deploy Token
A deployment token is used to give access of this repository to the dAIEdge-VLab. This token is used by CI/CD systems to access the container registry.
A deployment token is used to give access of this repository to the dAIEdge-VLab and its contrainer registery.
Location
Access the target repository in your GitLab. Then go to Setting > Repository Deploy tokens > Add token.
Name
Name the token as you want or leave the field empty. If you name it as follows GitLab exposes automatically the username and the token in CI/CD variable :
gitlab-deploy-tokenThe variables created are named as followed :
CI_DEPLOY_USER: UsernameCI_DEPLOY_PASSWORD: Token
This can be useful if you want to use these variables in your CI/CD pipeline.
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 as they will not be shown again.
Usage
The generated credentials will be used to give your Host access to the container registry. They will be used for the step Container Registry Access.