wtree Cloud

GitLab

Connect GitLab repositories with an OAuth application and add a webhook for auto-deploy.

Connect a GitLab account or group, then deploy its repositories from applications and Compose services. Auto-deploy needs a webhook that you add yourself.

Before you start

  • A GitLab account, with access to the group if you use one.
  • Your panel's Redirect URI, shown in the GitLab modal, for example https://your-wtree-cloud-domain.com/api/providers/gitlab/callback.

Connect

Open Integrations › Git providers and select GitLab. The modal asks for Application ID, Personal Secret and an optional Group Name.

In GitLab, open https://gitlab.com/-/profile/applications and click Add New Application.

Enter a name such as wtree-cloud-gitlab-app and paste the Redirect URI from the panel.

Select the scopes api, read_user and read_repository, then click Save Application.

Copy the Application ID and Secret into the panel modal.

Optional: to limit wtree Cloud to a group, enter its path in Group Name, for example example-group/frontend. Nested groups and subgroups work. Copy the path from the group's URL.

Click Continue, then Install, then Authorize. You return to Git providers.

Use it

Select GitLab repositories as the source of an application or Compose service.

To deploy on push, add a webhook:

In the application or Compose service, open Deployments and copy the Webhook URL.

In GitLab, open the repository, then Settings → Webhooks → Add Webhook.

Paste the URL, enable Push Events, and save.

Limits

  • wtree Cloud does not register webhooks for you; without one, GitLab pushes don't deploy.
  • An application deploys only for pushes to its selected branch. Use one application per environment to track several branches of the same repository.

On this page