Gitea
Connect Gitea repositories with an OAuth2 application and add a webhook for auto-deploy.
Connect a Gitea user or organization, then deploy its repositories from applications and Compose services. Auto-deploy needs a webhook that you add yourself.
Before you start
- A Gitea account on your instance, for example
https://gitea.com. - Your panel's Redirect URI, shown in the Gitea modal, for example
https://your-wtree-cloud-domain.com/api/providers/gitea/callback.
Connect
Open Integrations › Git providers and select Gitea. The modal asks for Application ID, Personal Secret and an optional Organization Name.
In Gitea, open your instance's application settings, for example https://gitea.com/user/settings/applications, and find Create a new OAuth2 Application.
Enter a name such as wtree-cloud-gitea-app, paste the Redirect URI, and check Confidential Client. Click Create Application.
Copy the Client ID and Client secret into the panel modal. Add an organization name if you want to connect an organization.
Click Configure Gitea app. The panel saves the provider and sends you to Gitea. Click Authorize. You return to Git providers.
Use it
Select Gitea 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 Gitea, open the repository, then Settings → Webhooks → Add Webhook.
Paste the URL, select Push Events as the trigger, and save.
Limits
- wtree Cloud does not register webhooks for you; without one, Gitea 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.
