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
- Log in to your account and navigate to the project that contains the environment you want to deploy using a deploy hook
- Select the environment from the list of environments.
- Click on the "Deploy Hooks" tab.
- Scroll down to the "Deploy Hooks" section on the page.
- Enter a label for the deploy hook.
- Click on the "Add deploy hook" button.
Once you have completed these steps, you're given a unique URL for the created deploy hook. To trigger this hook, you need to send a POST request to that URL.
Delete deploy hooks
- Log in to your account and navigate to the project that contains the environment you want to remove deploy hooks for.
- Select the environment from the list of environments.
- Click on the "Deploy Hooks" tab.
- Scroll down to the "Deploy Hooks" section on the page.
- Click on the "Delete deploy hook" button for the hook you want to delete
That's it! The hook has been removed and can no longer be used to trigger deployments.