Update Git auto-deployment settings
hosting_updateGitAutoDeploymentSettingsV1Configure Git auto-deployment for a website: set the repository, branch, target directory, and toggle automatic deploys on every push.
Instructions
Creates or replaces the Git auto-deployment settings of the website: repository, branch, the
directory under the document root to deploy into, and is_enabled. Send the full set;
is_enabled defaults to true and directory to the document root. installation_uuid must
be an installation from List Git installations that belongs to the same customer as the
website.
For PHP and static websites, saving with is_enabled true deploys the branch right away and
every later push to that branch deploys again. For Node.js and Website Builder websites saving
does not clone anything. On a Node.js website start the first deploy with
Start Node.js build using source_type git; pushes then trigger new builds with the build
settings stored for the website.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Repository owner login, as returned by `List Git installation repositories`. GitLab group paths use slashes. | |
| branch | Yes | Branch to deploy | |
| domain | Yes | Domain name | |
| username | Yes | username parameter | |
| directory | No | Subdirectory under the website document root to deploy into. Empty, null or omitted means the document root. | |
| is_enabled | No | Whether pushes to the branch deploy automatically | |
| repository | Yes | Repository name without the .git suffix | |
| installation_uuid | Yes | Active Git installation from `List Git installations` |