Skip to content

Commit 467aff2

Browse files
authored
Update integration.md add gitlab container registry
1 parent c95de33 commit 467aff2

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

docs/knowledge-base/git/gitlab/integration.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Integration"
3-
description: "Connect GitLab repositories to Coolify with deploy keys, automatic webhooks, and merge request deployments for CI/CD automation"
3+
description: "Connect GitLab repositories to Coolify with deploy keys, Gitlab container registry with deploy token, automatic webhooks, and merge request deployments for CI/CD automation"
44
---
55

66
# GitLab Integration
@@ -42,6 +42,30 @@ You need to use the SSH URL, so the one that starts with `git@`.
4242

4343
4. That's it! Coolify will automatically pull the latest version of your repository and deploy it.
4444

45+
## Public Container Registry
46+
47+
You can use public container registry without any additional setup.
48+
49+
1. Select the `Docker Image` option in the Coolify when you create a new resource.
50+
2. Add your public container registry URL and also the tag to the input field, for example: `registry.gitlab.com/username/repository:latest`.
51+
3. Press the `Deploy` button.
52+
4. That's it! Coolify will automatically pull the latest version of your container registry and deploy it.
53+
54+
## Private Container Registry
55+
56+
Private container registry require a few more steps to setup.
57+
58+
1. Add a `Deploy Token` in your GitLab repository in the `Settings` / `Repository` / `Deploy Token` with scope `read_registry`. This step will generate credentials `username` and `token`
59+
2. login docker with that credentials in your coolify server
60+
```
61+
echo "token-xxx" | docker login registry.gitlab.com -u gitlab+deploy-token-xxx --password-stdin
62+
```
63+
3. Select the `Docker Image` option in the Coolify when you create a new resource.
64+
4. Add your private container registry URL and also the tag to the input field, for example: `registry.gitlab.com/username/repository:latest`.
65+
5. Press the `Deploy` button.
66+
6. That's it! Coolify will automatically pull the latest version of your container registry and deploy it.
67+
68+
4569
## Automatic commit deployments with webhooks (Optional)
4670

4771
You can add a custom webhook URL to your GitLab repository to trigger a new deployment when you push to your repository.
@@ -66,4 +90,4 @@ You can add a custom webhook URL to your GitLab repository to trigger a new depl
6690
This can be set on either public or private repositories.
6791
:::
6892

69-
The process is the same as the previous one, but you need to select the `Merge request events` option in the `Settings` / `Webhooks` menu.
93+
The process is the same as the previous one, but you need to select the `Merge request events` option in the `Settings` / `Webhooks` menu.

0 commit comments

Comments
 (0)