Skip to content

Deploy your environments using deploy hooks ​

Deploy hooks allow you to trigger deployments for your environments using a unique URL.

Their behaviour depends on the deployment strategy you've selected for the environment:

  • Branch: The latest commit for the selected branch will be deployed
  • Tag: The latest tag will be deployed
  • Manual: You won't be able to use deploy hooks, since no commit can be automatically selected

Add deploy hooks ​

  1. Open the environment you want to deploy using a deploy hook and click on the "Deploy Hooks" tab.
  2. Enter a label for the deploy hook.
  3. Click on the "Add deploy hook" button.
The form to add a deploy hook with its label

The deploy hook gets a unique URL. To trigger it, send a POST request to that URL, as shown in the cURL example below the hook.

A deploy hook with the cURL example to trigger it and the Delete deploy hook button

Delete deploy hooks ​

  1. Open the environment and click on the "Deploy Hooks" tab.
  2. Click on the "Delete deploy hook" button for the hook you want to delete.

The hook can no longer be used to trigger deployments.