Drone CI / CD plugin to trigger builds for a list of downstream repositories.
This project uses the Build Create method of the Drone API to trigger builds with specified parameters for the listed repositories, partially replicating the functionality of drone-plugins/drone-downstream but with several improvements:
- This project creates a new build instead of restarting the previous one.
- It correctly parses the parameters with commas (e.g.
KEY=VALUE1,VALUE2,VALUE3
). - It builds as a multi-platform Docker image (
linux/amd64
,linux/arm64
).
kind: pipeline
name: default
steps:
- name: trigger
image: yusoltsev/drone-trigger-build
settings:
server: https://drone.example.com
token:
from_secret: drone_token
repositories:
- octocat/Hello-World
- octocat/Spoon-Knife
params:
- KEY=VALUE
- FOO=BAR
$ docker run --rm \
-e PLUGIN_SERVER=https://drone.example.com \
-e PLUGIN_TOKEN=<drone_token> \
-e PLUGIN_REPOSITORIES=octocat/Hello-World,octocat/Spoon-Knife \
-e PLUGIN_PARAMS=KEY=VALUE,FOO=BAR \
-v $(pwd):$(pwd) \
-w $(pwd) \
yusoltsev/drone-trigger-build
This application is delivered as a multi-platform Docker image and is available for download from two image registries of choice: yusoltsev/drone-trigger-build and ghcr.io/yegor-usoltsev/drone-trigger-build.
This project uses Semantic Versioning
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.