# Gitlab registry

### You need to have on hand

* [x] Your Gitlab Registry Full Repository name
* [x] Your Gitlab Personal access token OR a deploy token

### Access Token OR Deploy Token

You can follow this [**Tutorial**](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html) to generate a Personal Access Token

OR

You can follow this [**Tutorial**](https://docs.gitlab.com/ee/user/project/deploy_tokens/index.html) to generate a Deploy Token

### Split the Full Repository Name

Given this Full Repository: **registry.gitlab.com/group/project**

Your **Repository** will be: **registry.gitlab.com**

and your **Image** will be: **group/project**

### Add the app on Edgegap

#### **API Example**

```json
{
    [...]
    "docker_repository": "registry.gitlab.com",
    "docker_image": "group/project",
    "docker_tag": "v1",
    "private_username": "example@edgegap.com",
    "private_token": "<Personal Access Token OR Deploy Token>",
    [...]
}
```

#### **From Dashboard**

From our Dashboard, The **Private registry token** will be the content of your **Personal Access Token OR Deploy Token**

<figure><img src="https://3027732442-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR0dHSFv9ymoC0DO5G8J%2Fuploads%2Fgit-blob-4a6825b8dde4e365db487e258513c52aa919fce0%2Fgitlab-registry-example.png?alt=media" alt=""><figcaption></figcaption></figure>
