Skip to content

feat: Automatic deployment for gitlab#4608

Open
haouarihk wants to merge 2 commits into
Dokploy:canaryfrom
haouarihk:canary
Open

feat: Automatic deployment for gitlab#4608
haouarihk wants to merge 2 commits into
Dokploy:canaryfrom
haouarihk:canary

Conversation

@haouarihk

Copy link
Copy Markdown
Contributor

What is this PR about?

This PR enables automatic deployments for GitLab-based Application and Compose services by registering Dokploy’s deploy webhook when a GitLab source is saved. It also adds a GitLab provider setting to enable or disable this automatic webhook setup, while keeping it enabled by default.

Reason For adding a toggle

Saving a GitLab source can now fail if Dokploy cannot create/update the GitLab webhook. For example, expired/invalid token, missing api scope, insufficient GitLab permissions, network failure, or GitLab API incompatibility.

Checklist

Before submitting this PR, please make sure that:

  • You created a dedicated branch based on the canary branch.
  • You have read the suggestions in the CONTRIBUTING.md file https://github.com/Dokploy/dokploy/blob/canary/CONTRIBUTING.md#pull-request
  • You have tested this PR in your local instance. If you have not tested it yet, please do so before submitting. This helps avoid wasting maintainers' time reviewing code that has not been verified by you.

i've also tested watch paths, and it works great.

@haouarihk haouarihk requested a review from Siumauricio as a code owner June 10, 2026 04:12
@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels Jun 10, 2026
@haouarihk

Copy link
Copy Markdown
Contributor Author

Notes that apps that are already setup, needs to be redeployed for this to work
image

@haouarihk

Copy link
Copy Markdown
Contributor Author

I'm thinking of adding Trigger type. but maybe in another pull request.
the gilab api can create hooks for different trigger types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant