wtree Cloud

Auto deploy

Deploy on every push with a webhook, or trigger deployments from CI with the wtree Cloud API.

Auto deploy works for applications and Compose stacks. GitHub needs no setup. GitLab, Bitbucket, Gitea and Docker Hub use a webhook, and any pipeline can use the API.

Before you start

  • A deployed application or Compose stack.
  • For GitHub, the GitHub integration. Pushes then deploy with no further configuration.

Set up a webhook

On Overview, turn on Autodeploy in the Actions card.

Copy the Webhook URL from the Deployments tab.

Webhook URL

In your repository's settings on GitHub, GitLab, Bitbucket or Gitea, add a webhook with that URL.

Adding the webhook in GitHub

The branch you push to must match the branch configured in wtree Cloud. Otherwise the deployment fails with "Branch Not Match".

Docker Hub

Applications only.

Open the application's Deployments tab and copy the Webhook URL.

In your Docker Hub repository, open Webhooks, name the webhook and paste the URL.

A push deploys only when its tag matches the tag set in wtree Cloud.

Deploy with the API

Use this from a CI/CD pipeline or script.

Create an API key in your Profile (avatar menu), in the API/CLI Keys section.

List projects and services, and note the applicationId.

curl -X GET 'https://your-domain/api/project.all' \
  -H 'accept: application/json' \
  -H 'x-api-key: <token>'

Trigger the deployment.

curl -X POST 'https://your-domain/api/application.deploy' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: <token>' \
  -d '{"applicationId": "<applicationId>"}'

Next steps

On this page