{"id":22540688,"url":"https://github.com/yegor-usoltsev/drone-trigger-build","last_synced_at":"2025-10-30T04:33:25.923Z","repository":{"id":169993685,"uuid":"645992192","full_name":"yegor-usoltsev/drone-trigger-build","owner":"yegor-usoltsev","description":"Drone CI / CD plugin to trigger builds for a list of downstream repositories","archived":false,"fork":false,"pushed_at":"2025-03-16T08:38:22.000Z","size":57,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-16T09:25:19.290Z","etag":null,"topics":["build-automation","ci","devops","drone","drone-ci","drone-plugin"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yegor-usoltsev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-27T00:29:55.000Z","updated_at":"2025-03-16T08:23:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"6ca79928-b0ae-4efb-930b-64796d345e01","html_url":"https://github.com/yegor-usoltsev/drone-trigger-build","commit_stats":null,"previous_names":["yegor-usoltsev/drone-trigger-build"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor-usoltsev%2Fdrone-trigger-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor-usoltsev%2Fdrone-trigger-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor-usoltsev%2Fdrone-trigger-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor-usoltsev%2Fdrone-trigger-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yegor-usoltsev","download_url":"https://codeload.github.com/yegor-usoltsev/drone-trigger-build/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245984968,"owners_count":20704892,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["build-automation","ci","devops","drone","drone-ci","drone-plugin"],"created_at":"2024-12-07T12:12:05.193Z","updated_at":"2025-10-30T04:33:25.916Z","avatar_url":"https://github.com/yegor-usoltsev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# drone-trigger-build\n\n[![Build Status](https://github.com/yegor-usoltsev/drone-trigger-build/actions/workflows/ci.yml/badge.svg)](https://github.com/yegor-usoltsev/drone-trigger-build/actions)\n[![Codecov](https://codecov.io/github/yegor-usoltsev/drone-trigger-build/graph/badge.svg?token=W3C1MTB6S4)](https://codecov.io/github/yegor-usoltsev/drone-trigger-build)\n[![GitHub Release](https://img.shields.io/github/v/release/yegor-usoltsev/drone-trigger-build?sort=semver)](https://github.com/yegor-usoltsev/drone-trigger-build/releases)\n[![Docker Image (docker.io)](https://img.shields.io/docker/v/yusoltsev/drone-trigger-build?label=docker.io\u0026sort=semver)](https://hub.docker.com/r/yusoltsev/drone-trigger-build)\n[![Docker Image (ghcr.io)](https://img.shields.io/docker/v/yusoltsev/drone-trigger-build?label=ghcr.io\u0026sort=semver)](https://github.com/yegor-usoltsev/drone-trigger-build/pkgs/container/drone-trigger-build)\n[![Docker Image Size](https://img.shields.io/docker/image-size/yusoltsev/drone-trigger-build?sort=semver\u0026arch=amd64)](https://hub.docker.com/r/yusoltsev/drone-trigger-build/tags)\n\nDrone CI / CD plugin to trigger builds for a list of downstream repositories.\n\nThis project uses the [Build Create method](https://docs.drone.io/api/builds/build_create/) of the Drone API to\ntrigger builds with specified parameters for the listed repositories, partially replicating the functionality\nof [drone-plugins/drone-downstream](https://github.com/drone-plugins/drone-downstream) but with several improvements:\n\n1. This project creates a new build instead of restarting the previous one.\n2. It correctly parses the parameters with commas (e.g. `KEY=VALUE1,VALUE2,VALUE3`).\n3. It builds as a multi-platform Docker image (`linux/amd64`, `linux/arm64`).\n\n## Usage\n\n### Drone Pipeline\n\n```yaml\nkind: pipeline\nname: default\n\nsteps:\n  - name: trigger\n    image: yusoltsev/drone-trigger-build\n    settings:\n      server: https://drone.example.com\n      token:\n        from_secret: drone_token\n      repositories:\n        - octocat/Hello-World\n        - octocat/Spoon-Knife\n      params:\n        - KEY=VALUE\n        - FOO=BAR\n```\n\n### Docker\n\n```bash\n$ docker run --rm \\\n  -e PLUGIN_SERVER=https://drone.example.com \\\n  -e PLUGIN_TOKEN=\u003cdrone_token\u003e \\\n  -e PLUGIN_REPOSITORIES=octocat/Hello-World,octocat/Spoon-Knife \\\n  -e PLUGIN_PARAMS=KEY=VALUE,FOO=BAR \\\n  -v $(pwd):$(pwd) \\\n  -w $(pwd) \\\n  yusoltsev/drone-trigger-build\n```\n\n## Docker Images\n\nThis application is delivered as a multi-platform Docker image and is available for download from two image registries\nof choice: [yusoltsev/drone-trigger-build](https://hub.docker.com/r/yusoltsev/drone-trigger-build)\nand [ghcr.io/yegor-usoltsev/drone-trigger-build](https://github.com/yegor-usoltsev/drone-trigger-build/pkgs/container/drone-trigger-build).\n\n## Versioning\n\nThis project uses [Semantic Versioning](https://semver.org)\n\n## Contributing\n\nPull requests are welcome. For major changes,\nplease [open an issue](https://github.com/yegor-usoltsev/drone-trigger-build/issues/new) first to discuss what you would\nlike to change. Please make sure to update tests as appropriate.\n\n## License\n\n[MIT](https://github.com/yegor-usoltsev/drone-trigger-build/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyegor-usoltsev%2Fdrone-trigger-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyegor-usoltsev%2Fdrone-trigger-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyegor-usoltsev%2Fdrone-trigger-build/lists"}