hwittenborn / drone-global-triggers

Drone CI extension to only allow specific triggers to start CI pipelines

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

drone-global-triggers

Introduction

drone-global-trigers is a validation extension for Drone CI, allowing you to globally specify what build event types are allowed to run on your CI servers.

Installing

The only supported way for running is through the official Docker image which can be pulled from the following repository:

proget.hunterwittenborn.com/docker/hwittenborn/drone-global-triggers

Running

First, set the DRONE_VALIDATE_PLUGIN_ENDPOINT and DRONE_VALIDATE_PLUGIN_SECRET environment variables under the config of your Drone server (i.e. the config for the service runnning the drone/drone Docker image).

After, create the drone-global-triggers container, configured as follows:

  • Pass the DRONE_VALIDATE_PLUGIN_SECRET variable, with its value set the same as that set under the config for your Drone server.

  • Pass the ALLOWLIST variable, which should be a comma-separated list of build events that are allowed to run.

  • Bind a public port to the container's internal port 8080.

For example:

docker run -p "8080:8080" \
           -e "DRONE_VALIDATE_PLUGIN_SECRET=your_secret_here" \
           -e "ALLOWLIST=push,cron,custom"
           proget.hunterwittenborn.com/docker/hwittenborn/drone-global-triggers

Support

Issues and questions regarding usage should be posted under the issue tracker.

About

Drone CI extension to only allow specific triggers to start CI pipelines

License:GNU General Public License v3.0


Languages

Language:Python 73.5%Language:Jsonnet 11.0%Language:Shell 9.1%Language:Dockerfile 6.4%