Skip to main content

Webhook deployment

Webhook deployment triggers a remote deployment by calling an HTTP endpoint.

This is useful for integrating with external systems or custom deployment pipelines that expose webhook URLs.

note

This is a deployment type - it triggers the deployment itself. To call a webhook about a deployment (for example, to tell a monitoring system one happened), use the webhook notification channel instead.

How it works

When webhook is included in $VORTEX_DEPLOY_TYPES, the deployment script calls the configured webhook URL using CURL, passing deployment information as parameters.

Configuration

Environment variables

VariableRequiredDefaultLocationDescription
VORTEX_DEPLOY_WEBHOOK_URLYesHosting/CIThe webhook URL to call
VORTEX_DEPLOY_WEBHOOK_METHODNoGET.envHTTP method (GET, POST)
VORTEX_DEPLOY_WEBHOOK_RESPONSE_STATUSNo200.envExpected HTTP response status code

Setup

  1. Add webhook to the VORTEX_DEPLOY_TYPES variable in your .env file:

    .env
    VORTEX_DEPLOY_TYPES=webhook
  2. Add VORTEX_DEPLOY_WEBHOOK_URL to your CI provider's environment variables (this should be kept secret).

Use cases

  • Triggering deployments on platforms that provide webhook endpoints
  • Integrating with custom deployment orchestration systems
  • Notifying external services when code is ready for deployment

See also