Skip to content

Commit e3d4538

Browse files
authored
Merge pull request #395 from fairuzrahman/patch-1
2 parents be6d4b4 + 8633446 commit e3d4538

File tree

3 files changed

+43
-9
lines changed

3 files changed

+43
-9
lines changed

.github/workflows/claude-code-review.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212

1313
jobs:
1414
claude-review:
15+
if: false
1516
# Optional: Filter by PR author
1617
# if: |
1718
# github.event.pull_request.user.login == 'external-contributor' ||

conductor.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"scripts": {
3+
"run": "bun install && bun run dev"
4+
},
5+
"runScriptMode": "nonconcurrent"
6+
}

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

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
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
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`
@@ -42,6 +44,31 @@ You need to use the SSH URL, so the one that starts with `git@`.
4244

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

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
62+
63+
```
64+
echo "token-xxx" | docker login registry.privategitlab.com -u gitlab+deploy-token-xxx --password-stdin
65+
```
66+
67+
3. Select the `Docker Image` option in the Coolify when you create a new resource.
68+
4. Add your private container registry URL and also the tag to the input field, for example: `registry.privategitlab.com/username/repository:latest`.
69+
5. Press the `Deploy` button.
70+
6. That's it! Coolify will automatically pull the latest version of your container registry and deploy it.
71+
4572
## Automatic commit deployments with webhooks (Optional)
4673

4774
You can add a custom webhook URL to your GitLab repository to trigger a new deployment when you push to your repository.
@@ -66,4 +93,4 @@ You can add a custom webhook URL to your GitLab repository to trigger a new depl
6693
This can be set on either public or private repositories.
6794
:::
6895

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.
96+
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)