How to automatically deploy a GitLab repository

Before you can add your webhook to GitLab, you'll need to retrieve it from your DeployHQ project.

Open your repository up in GitLab (there's a shortcut at the top of DeployHQ labelled "Browse Repository") and navigate to the Settings tab on the left hand side of the page, followed by the Webhooks sub-menu below:

GitLab automatic deployments

Paste your webhook URL into the URL field, ensure only Push events are enabled checked within the Trigger options, then click Add webhook to finish.

Please note, if you're adding the webhook to a self-hosted GitLab repository, you'll need to make sure you select the repository host as Gitlab in your repository configuration first.

Proudly powered by Katapult. Running on 100% renewable energy.