Automatic deployments
Deploy on every push, on a new tag, or from CI with a deploy hook.
A deploy can start without anybody clicking. What starts it depends on the source:
| Source | What starts a deploy |
|---|---|
| GitHub, GitLab, Bitbucket or Gitea, connected to Deplo | A push, or a new tag |
| A plain Git URL, an upload, a Docker image, a pasted Compose app | A call to the deploy hook, from CI or a script |
Deploy on push
Turn it on
Settings -> Deployments, the Releases card: turn on Deploy on push. The switch saves itself.
Pick the trigger
Open the Trigger drawer. Deploy trigger is:
- On push to branch (default): the branch on the Source card.
- On new tag: every new tag, whatever the branch.
Include submodules clones the repository's submodules too. Save in the bar at the bottom.
Watch paths
For a monorepo: each app deploys only when its own code changes. In the Trigger drawer, fill Watch paths (optional) with one glob per line:
apps/web/**
packages/ui/**A push deploys only if it changed a matching file. Empty deploys on any change.
Deploy from CI with a deploy hook
Copy the URL
Settings -> Advanced, the Build & triggers card, then Copy deploy hook URL. It is on by default for every app that does not deploy from a connected repository.

Create a token
Create an API token from the Deploy hook & CI template. The URL alone deploys nothing.
Call it
From your CI, after the tests pass:
curl -X POST \
-H "Authorization: Bearer deplo_<token>" \
https://deplo.example.com/api/apps/prj_3f9a1c2b7d4e8a06/deploy-hook/q9Vx2LkP0aZ7mT4wR8sYbN1cE6dH3fJu| The hook answers | It means |
|---|---|
401 or 403 | The token is wrong, expired or cannot deploy, or the hook is off |
404 | The URL was rotated, or the token belongs to another team |
Rotate deploy hook URL kills the old URL at once. The switch next to it turns the hook off.
Good to know
- A manual redeploy ignores the trigger and the watch paths.
- Two apps can watch one repository, on different branches or paths: a normal staging setup.
Something wrong? See Deploys and builds.
Did this page help you?