You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/knowledge-base/git/gitlab/integration.md
+36-9Lines changed: 36 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,10 @@
1
1
---
2
2
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"
4
4
---
5
5
6
6
# GitLab Integration
7
+
7
8
## Public Repositories
8
9
9
10
You can use public repositories without any additional setup.
@@ -24,14 +25,15 @@ Private repositories require a few more steps to setup.
24
25
1. Add a private key (aka `Deploy Keys`) to Coolify and to your GitLab repository in the `Settings` / `Repository` / `Deploy Keys` menu.
25
26
26
27
::: warning Caution
27
-
- You can generate a new key pair with the following command:
28
-
29
-
```bash
30
-
ssh-keygen -t rsa -b 4096 -C "deploy_key"
31
-
```
32
28
33
-
- Or you can also use Coolify to generate a new key for you in the `Keys & Tokens` menu.
34
-
:::
29
+
- You can generate a new key pair with the following command:
30
+
31
+
```bash
32
+
ssh-keygen -t rsa -b 4096 -C "deploy_key"
33
+
```
34
+
35
+
- Or you can also use Coolify to generate a new key for you in the `Keys & Tokens` menu.
36
+
:::
35
37
36
38
2. Create a new resource and select the `Private Repository (with deploy key)`
37
39
3. Add your repository URL to the input field, for example: `[email protected]:andrasbacsai/coolify-examples.git`
@@ -42,6 +44,31 @@ You need to use the SSH URL, so the one that starts with `git@`.
42
44
43
45
4. That's it! Coolify will automatically pull the latest version of your repository and deploy it.
44
46
47
+
## Public Container Registry
48
+
49
+
You can use public container registry without any additional setup.
50
+
51
+
1. Select the `Docker Image` option in the Coolify when you create a new resource.
52
+
2. Add your public container registry URL and also the tag to the input field, for example: `registry.gitlab.com/username/repository:latest`.
53
+
3. Press the `Deploy` button.
54
+
4. That's it! Coolify will automatically pull the latest version of your container registry and deploy it.
55
+
56
+
## Private Container Registry
57
+
58
+
Private container registry require a few more steps to setup.
59
+
60
+
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`
61
+
2. login docker with that credentials in your coolify server
0 commit comments