{"id":48077704,"url":"https://github.com/bitsbeats/dronetrigger","last_synced_at":"2026-04-04T14:51:41.531Z","repository":{"id":64302234,"uuid":"188209783","full_name":"bitsbeats/dronetrigger","owner":"bitsbeats","description":"Simple tool to trigger drone builds","archived":false,"fork":false,"pushed_at":"2024-08-12T14:24:35.000Z","size":169,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-13T10:26:22.197Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitsbeats.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":"2019-05-23T10:09:17.000Z","updated_at":"2024-08-12T14:24:31.000Z","dependencies_parsed_at":"2024-08-13T12:55:18.131Z","dependency_job_id":null,"html_url":"https://github.com/bitsbeats/dronetrigger","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/bitsbeats/dronetrigger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitsbeats%2Fdronetrigger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitsbeats%2Fdronetrigger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitsbeats%2Fdronetrigger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitsbeats%2Fdronetrigger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitsbeats","download_url":"https://codeload.github.com/bitsbeats/dronetrigger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitsbeats%2Fdronetrigger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31403765,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2026-04-04T14:51:40.799Z","updated_at":"2026-04-04T14:51:41.510Z","avatar_url":"https://github.com/bitsbeats.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dronetrigger\n\nSimple tool to trigger drone builds. Can be used for more advanced crons or in scripts.\n\n**Note**: dronetrigger injects the variable `DRONETRIGGER=true` into the steps.\nUse this to determine if a build was triggered.\n\n## Configuration\n\nThe configfile is either `/etc/dronetrigger.yml` or supplied by `-config`.\n\nSample:\n\n```yaml\n---\n\nurl: https://drone.example.com\ntoken: thisisnotavaliddronetoken1234567\n\nweb:\n  bearer_token:\n    octocat/test: s3cret_t0ken\n```\n\n* `url` represents the URL to a drone server\n* `token` is used to authentificate against drone\n* `web.bearer_token.*`: sets up a per repo secret to trigger builds\n\n\n## Usage\n\nNote: After adding new repos you need to sync the repositories, otherwise\nyou may get 404 errors. Also make sure that the access rights are configured\nfor the token.\n\n```sh\nDRONE_TOKEN=\"$token_from_etc_drontrigger_yml\" drone repo sync\n```\n\nCLI examples:\n\n```sh\n# build default branch of a repo\ndronetrigger -repo octocat/test\n\n# build specific branch of a repo\ndronetrigger -repo octocat/test -branch master\n\n# rebuild a release\ndronetigger -repo octocat/test -release\n```\n\nWeb examples:\n\n```sh\n# rebuild last commit on a branch\ncurl -H 'Authorization: Bearer s3cret_token' -d '{\"repo\": \"octocat/test\", \"branch\": \"master\"}' $url\n\n# rebuild last tag\ncurl -H 'Authorization: Bearer s3cret_token' -d '{\"repo\": \"octocat/test\", \"release\": true}' $url\n\n# promote last commit on a branch\ncurl -H 'Authorization: Bearer s3cret_token' -d '{\"repo\": \"octocat/test\", \"branch\": \"master\", \"target\": \"promote-name\"}' $url\n\n# promote last tag\ncurl -H 'Authorization: Bearer s3cret_token' -d '{\"repo\": \"octocat/test\", \"release\": true, \"target\": \"promote-name\"}' $url\n```\n\nHelp:\n\n```sh\n$ dronetrigger -h\nUsage of ./dronetrigger:\n  -config string\n    \tConfiguration file. (default \"/etc/dronetrigger.yml\")\n  -branch string\n    \tGit rev (i.e. branch) to trigger build.\n  -repo string\n    \tRepository to build (i.e. octocat/awesome).\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitsbeats%2Fdronetrigger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitsbeats%2Fdronetrigger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitsbeats%2Fdronetrigger/lists"}