Deploy Token

This page describes the process to add a new target to the dAIEdge-VLab.

⚠️
Prerequisite: Before starting de deployment, make sure you have at least a repository that follows the correct structure. The implementation may not be started or completed.

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: Username
  • CI_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)
⚠️
Safety warning: Make sure to only select these access rights and no other. This token is going to be used in environment variables that are used by the dAIEdge-VLab.

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.