{"id":19124341,"url":"https://github.com/buildkite/dynamic-pipeline-example","last_synced_at":"2026-02-23T04:32:26.762Z","repository":{"id":46238766,"uuid":"51905542","full_name":"buildkite/dynamic-pipeline-example","owner":"buildkite","description":"An example pipeline that dynamically generates steps using a shell script.","archived":false,"fork":false,"pushed_at":"2025-07-18T05:47:31.000Z","size":367,"stargazers_count":18,"open_issues_count":1,"forks_count":12,"subscribers_count":24,"default_branch":"main","last_synced_at":"2025-11-03T07:04:19.265Z","etag":null,"topics":["buildkite","dynamic-pipelines","example","pipeline"],"latest_commit_sha":null,"homepage":"https://buildkite.com/buildkite/dynamic-pipeline-example/builds/latest?branch=main","language":"Shell","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/buildkite.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2016-02-17T08:03:43.000Z","updated_at":"2025-07-18T05:47:34.000Z","dependencies_parsed_at":"2024-11-09T05:29:21.232Z","dependency_job_id":"9492464d-cf3f-4d0e-9b9f-10a5d1aaf412","html_url":"https://github.com/buildkite/dynamic-pipeline-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/buildkite/dynamic-pipeline-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildkite%2Fdynamic-pipeline-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildkite%2Fdynamic-pipeline-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildkite%2Fdynamic-pipeline-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildkite%2Fdynamic-pipeline-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buildkite","download_url":"https://codeload.github.com/buildkite/dynamic-pipeline-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildkite%2Fdynamic-pipeline-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29738079,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T02:24:00.660Z","status":"ssl_error","status_checked_at":"2026-02-23T02:22:56.087Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["buildkite","dynamic-pipelines","example","pipeline"],"created_at":"2024-11-09T05:28:50.831Z","updated_at":"2026-02-23T04:32:26.750Z","avatar_url":"https://github.com/buildkite.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Buildkite Dynamic Pipeline Steps Example\n\n[![Build status](https://badge.buildkite.com/c2e1cdc85d67dec83d2031e511bc208e911d178e54b59fec8b.svg?branch=main)](https://buildkite.com/buildkite/dynamic-pipeline-example/builds/latest?branch=main)\n[![Add to Buildkite](https://img.shields.io/badge/Add%20to%20Buildkite-14CC80)](https://buildkite.com/new)\n\nThis repository is an example [Buildkite](https://buildkite.com/) pipeline that shows how to programmatically generate dynamic steps using a shell script.\n\n👉 **See this example in action:** [buildkite/dynamic-pipeline-example](https://buildkite.com/buildkite/dynamic-pipeline-example/builds/latest?branch=main)\n\nSee the full [Getting Started Guide](https://buildkite.com/docs/guides/getting-started) for step-by-step instructions on how to get this running, or try it yourself:\n\n[![Add to Buildkite](https://buildkite.com/button.svg)](https://buildkite.com/new)\n\n\u003ca href=\"https://buildkite.com/buildkite/dynamic-pipeline-example/builds/latest?branch=main\"\u003e\n  \u003cimg src=\".buildkite/screenshot.png\" alt=\"Screenshot of Buildkite dynamic pipeline example\" /\u003e\n\u003c/a\u003e\n\n\u003c!-- docs:start --\u003e\n\n## How does it work?\n\nThis pipeline starts with a single job that runs:\n```bash\n.buildkite/pipeline.sh | buildkite-agent pipeline upload\n```\n\nThe script [.buildkite/pipeline.sh](.buildkite/pipeline.sh) does the following:\n* Creates a test step for each subdirectory in [specs](specs/)\n* Adds a deploy step if the build is on the `main` branch\n\nFor non-main branches build it generates:\n\n```yml\nsteps:\n  - command: \"specs/controllers/test.sh\"\n    label: \"controllers\"\n  - command: \"specs/features/test.sh\"\n    label: \"features\"\n  - command: \"specs/models/test.sh\"\n    label: \"models\"\n```\n\nFor a `main` branch build it generates:\n\n```yml\nsteps:\n  - command: \"specs/controllers/test.sh\"\n    label: \"controllers\"\n  - command: \"specs/features/test.sh\"\n    label: \"features\"\n  - command: \"specs/models/test.sh\"\n    label: \"models\"\n  - wait\n  - command: \"echo Deploy!\"\n    label: \":rocket:\"\n```\n\n## More ideas\n\nWhat else could you do? The possibilities are endless. You can use this technique for custom deploy workflows, QA gates, conditional rollbacks, etc.\n\nTools like [Jobsworth](https://github.com/saymedia/jobsworth) use dynamic steps to manage complex deployment logic.\n\n\u003c!-- docs:end --\u003e\n\n## License\n\nSee [LICENSE.md](LICENSE.md) (MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuildkite%2Fdynamic-pipeline-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuildkite%2Fdynamic-pipeline-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuildkite%2Fdynamic-pipeline-example/lists"}