Skip to content
Docs
strackt.io Open app

Connect GitLab, Bitbucket, or Gitea

Connect GitLab, Bitbucket Cloud, Gitea, or a self-hosted GitLab so strackt can browse your repositories, pull your code, and deploy when you push.

Connect GitLab, Bitbucket, or Gitea

strackt deploys from more than GitHub. Connect GitLab, Bitbucket Cloud, Gitea, or a self-hosted GitLab, and every application in your workspace can pick a repository from that account — with the same browse, detect, and deploy-on-push experience.

GitLab and Bitbucket: connect with one click

Open Settings → Source control and choose Connect GitLab or Connect Bitbucket. The provider asks you to approve access, then sends you back to strackt with your account connected. You do this once per workspace.

Gitea and self-hosted GitLab: connect with a token

For Gitea or a GitLab instance you host yourself, choose the provider card and enter two things:

  • Instance URL — where your Git host lives, like https://git.example.com.
  • Access token — a personal access token from your account there. For GitLab, the token needs the api scope; for Gitea, it needs repository write access.

strackt checks the connection before saving, and the token is stored encrypted.

One thing to know: your Git host must be reachable from the internet for push-to-deploy to work. If it isn't, you can still deploy — you'll just trigger deploys from strackt instead of on push.

What strackt sets up for you

When you link a repository to an application, strackt adds a webhook to that repository for you, so pushes reach strackt without any manual setup. Unlink the repository (or delete the application) and strackt removes the webhook again.

Deploys pull your code over a secure connection using short-lived access where the provider supports it. Your token is never written into your repository or your server's configuration.

Deploy automatically on push

Exactly like GitHub: turn on auto-deploy and every push to the branch your application tracks deploys it. Pushes to other branches do nothing.

The push must come from the exact account you selected for the application. A repository with the same name on another connected account cannot trigger a deploy or change that selection. If pushes stop reaching an older application, check its repository connection in the application’s Settings → Source. Choose the correct connected account and repository; contact support if an existing selection needs correcting.

If you connect the same repository through separate accounts for different applications, each application receives its own deploy on push. Repeated delivery of the same push to the same connection is ignored.

If your connection stops working

Tokens expire and access gets revoked. When strackt can no longer reach your account, the provider shows Needs reconnect on the Source control settings page. Reconnect (or paste a fresh token) and everything resumes — your linked repositories stay in place.

What to do next

Connect an existing application

Open the application's Settings → Source and choose Connect repository. Select your connected account, repository and deployment branch. Connecting turns on deploy-on-push for the production environment and starts detection. Detection and webhook setup may still be running when the connection appears.

If the project ships prepared releases, strackt asks you to confirm This is my own application. strackt builds your application's source; use Coolify to install packaged software.

You can also attach through the API with POST /v1/applications/{application}/attach and an applications:write token. Send source_control_provider_id, repository_full_name and branch. The optional repository_url must identify the same repository; it cannot override the selected source. When required, send repository_is_own_application: true. The token must cover the application's affected resources, including production.

Repeating the same connection and production branch leaves the existing setup unchanged. To change the deployment branch, use the environment's branch settings. A different repository needs a separate application. Operated WordPress sites do not connect to a repository.

Was this helpful?