Trigger builds in private network environments

I read the Drone documentation and learn that Drone does not really do CVS polling. It is only trigger by a web hook created by git events. This is pretty much a show stopper for Drone deployments in private network environments.

To work around this limitation, I created a small utility to spawn a web hook proxy for Drone in the cloud and uses a local web hook agent to poll that proxy before delivering messages to the local Drone instance.

The source code and documentation and available at https://github.com/imulab-x/drone-webhook-proxy

Suggestions and feedbacks are appreciated.

Thanks all!

very cool, also note that you can use DRONE_SERVER_PROXY_ variables to override the webhook address, and send webhooks to a different address. This prevents you from having to manually edit the webhook address in github.

DRONE_SERVER_PROTO=https
DRONE_SERVER_HOST=company.com
DRONE_SERVER_PROXY_PROTO=https
DRONE_SERVER_PROXY_HOST=proxy.company.com

Thanks! That’s great. I also just discovered ngrok. Looks like a more complete solution.