{"id":18678684,"url":"https://github.com/danihodovic/drone-promote","last_synced_at":"2025-07-30T09:40:29.711Z","repository":{"id":48307745,"uuid":"390804938","full_name":"danihodovic/drone-promote","owner":"danihodovic","description":"A Drone plugin which triggers promotions (deployments).","archived":false,"fork":false,"pushed_at":"2021-08-02T11:58:14.000Z","size":65,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-27T21:33:44.797Z","etag":null,"topics":["ci","deployment","drone","drone-ci"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danihodovic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-29T17:38:39.000Z","updated_at":"2023-07-24T07:38:47.000Z","dependencies_parsed_at":"2022-09-16T13:47:12.085Z","dependency_job_id":null,"html_url":"https://github.com/danihodovic/drone-promote","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danihodovic%2Fdrone-promote","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danihodovic%2Fdrone-promote/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danihodovic%2Fdrone-promote/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danihodovic%2Fdrone-promote/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danihodovic","download_url":"https://codeload.github.com/danihodovic/drone-promote/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239530175,"owners_count":19654242,"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":["ci","deployment","drone","drone-ci"],"created_at":"2024-11-07T09:41:05.174Z","updated_at":"2025-02-18T18:43:11.866Z","avatar_url":"https://github.com/danihodovic.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# drone-promote\n\nA plugin which triggers downstream promotion.\n\nIt requires you to set a secret for your Drone setup as `drone_token`.\n\n```sh\nDRONE_SERVER=https://drone.myorg.dev DRONE_TOKEN=x drone orgsecret add my-org drone_token x --allow-pull-request\n```\n\n### Example workflow\n\nThis allows one pipeline to trigger another pipeline - typically used for\ndeployments. In a common multi-environment setup you usually want a merge to\nmaster to deploy to staging, but keep deployments to production manual. The\nimage describes the workflow configured in the yaml snippet below.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./img/deployment.png\"\u003e\n\u003c/p\u003e\n\n```yaml\n---\nkind: pipeline\ntype: docker\nname: test\ntrigger:\n  event:\n    exclude:\n      - promote\n      - rollback\nsteps:\n  - name: test\n    image: python:3.9.1\n    commands:\n      - pytest .\n\n---\nkind: pipeline\ntype: docker\nname: trigger-staging-deploy\ndepends_on:\n  - test\ntrigger:\n  branch:\n    - master\n  event:\n    - push\nsteps:\n  - name: promote-staging\n    image: danihodovic/drone-promote\n    settings:\n      drone_token:\n        from_secret: drone_token\n      target: staging\n\n---\nkind: pipeline\ntype: docker\nname: deploy-staging\ntrigger:\n  event:\n    - promote\n  target:\n    - staging\nsteps:\n  - name: deploy\n    image: danihodovic/ansible\n    commands:\n      - ansible-playbook deploy.yml -i environments/staging\n\n---\nkind: pipeline\ntype: docker\nname: deploy-production\ntrigger:\n  event:\n    - promote\n  target:\n    - production\nsteps:\n  - name: deploy\n    image: danihodovic/ansible\n    commands:\n      - ansible-playbook deploy.yml -i environments/production\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanihodovic%2Fdrone-promote","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanihodovic%2Fdrone-promote","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanihodovic%2Fdrone-promote/lists"}