Set the Git repository an Environment deploys from.
Arguments
| Argument |
Type |
Description |
data |
object |
The Git source, as in git_repo.yml. Required. |
data.environment_id |
string |
Environment id. |
data.clone_url |
string |
Repository URL. |
data.branch |
string |
Branch to deploy. |
data.repository_type |
string |
Repository type. |
data.subfolder |
string |
Folder of a larger repository to deploy. |
data.git_provider_id |
string |
Connected Git provider for a private repository. |
data.git_ssh_key_id |
string |
Git SSH key. |
Example
{"data":{"clone_url":"https://github.com/acme/shop","services":[{"name":"web","command":"web","port":3000,"publicly_exposed":true}]}}