> For the complete documentation index, see [llms.txt](https://docs.dyrector.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dyrector.io/tutorials/add-your-registry/add-gitlab-registry.md).

# Add GitLab Registry

{% hint style="info" %}
You can add registries available from both self-managed or SaaS GitLab.
{% endhint %}

### Add SaaS GitLab Registry

**Step 1:** Open Registries on the left and click ‘Add’ on the top right.

**Step 2:** Enter your registry’s name and select an icon.

{% hint style="success" %}
**Tip:** You can write a description, so others on your team can understand what’s the purpose of this registry.
{% endhint %}

**Step 3:** Select GitLab Registry type.

<figure><img src="https://315393028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCNvxW8k55ZlpJfMk8Oep%2Fuploads%2FQABUuK7TIZbaSp8ND32X%2Fdyrector-io-gitlab-registry.png?alt=media&amp;token=52e7537e-94c9-4f91-a55f-7938ce5b8364" alt=""><figcaption></figcaption></figure>

**Step 4:** Select if you'd like to add a group or a project.

**Step 5:** In the corresponding fields, enter:

* Your GitLab username,
* Your password or access token generated in GitLab with the steps documented [**here**](https://gitlab.com/-/profile/personal_access_tokens). Select the `read_api` and `read_registry` scopes.
* And your organization’s or your project's GitHub name. You can find either under their name in their main pages.

**Step 6:** Make sure the Self-managed GitLab toggle is off. If you select GitLab Registry type, SaaS should be set by default.

**Step 7:** Click ‘Save’ button on the top right.

### Add Self-managed GitLab Registry

**Step 1:** Open Registries on the left and click ‘Add’ on the top right.

**Step 2:** Enter your registry’s Nname and select an icon.

{% hint style="success" %}
Tip: You can write a description, so others on your team can understand what’s the purpose of this registry.
{% endhint %}

**Step 3:** Select GitLab Registry type.

**Step 4:** In the corresponding fields, enter:

* your GitLab username,
* your password or access token generated in GitLab with the steps documented [**here**](https://gitlab.com/-/profile/personal_access_tokens). Select the `read_api` and `read_registry` scopes.
* And your organization’s GitHub name.

**Step 5:** Turn on self-managed GitLab toggle.

**Step 6:** Enter GitLab Registry’s URL and the GitLab API URL without the https prefixes.

**Step 7:** Click ‘Save’ button on the top right.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.dyrector.io/tutorials/add-your-registry/add-gitlab-registry.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
