Skip to Content
Configure an app

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:

SourceWhat starts a deploy
GitHub, GitLab, Bitbucket or Gitea, connected to DeploA push, or a new tag
A plain Git URL, an upload, a Docker image, a pasted Compose appA call to the deploy hook, from CI or a script

Deploy on push

The repository and production branch that decide what a push deploys

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.

The deploy hook URL with its rotate control

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 answersIt means
401 or 403The token is wrong, expired or cannot deploy, or the hook is off
404The 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?

On this page