Skip to content

Commit 3cc7faa

Browse files
committed
docs(gitlab): use more generic url for private registry
1 parent 467aff2 commit 3cc7faa

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

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

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ description: "Connect GitLab repositories to Coolify with deploy keys, Gitlab co
44
---
55

66
# GitLab Integration
7+
78
## Public Repositories
89

910
You can use public repositories without any additional setup.
@@ -24,14 +25,15 @@ Private repositories require a few more steps to setup.
2425
1. Add a private key (aka `Deploy Keys`) to Coolify and to your GitLab repository in the `Settings` / `Repository` / `Deploy Keys` menu.
2526

2627
::: 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-
```
3228

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+
:::
3537

3638
2. Create a new resource and select the `Private Repository (with deploy key)`
3739
3. Add your repository URL to the input field, for example: `[email protected]:andrasbacsai/coolify-examples.git`
@@ -57,15 +59,16 @@ Private container registry require a few more steps to setup.
5759

5860
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`
5961
2. login docker with that credentials in your coolify server
62+
6063
```
61-
echo "token-xxx" | docker login registry.gitlab.com -u gitlab+deploy-token-xxx --password-stdin
64+
echo "token-xxx" | docker login registry.privategitlab.com -u gitlab+deploy-token-xxx --password-stdin
6265
```
66+
6367
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`.
68+
4. Add your private container registry URL and also the tag to the input field, for example: `registry.privategitlab.com/username/repository:latest`.
6569
5. Press the `Deploy` button.
6670
6. That's it! Coolify will automatically pull the latest version of your container registry and deploy it.
6771

68-
6972
## Automatic commit deployments with webhooks (Optional)
7073

7174
You can add a custom webhook URL to your GitLab repository to trigger a new deployment when you push to your repository.

0 commit comments

Comments
 (0)