{"id":19124371,"url":"https://github.com/buildkite/deploy-confirm-block-step-example","last_synced_at":"2025-09-23T13:30:00.910Z","repository":{"id":147602016,"uuid":"76402864","full_name":"buildkite/deploy-confirm-block-step-example","owner":"buildkite","description":"An example pipeline that uses a block step to confirm deployments on Fridays.","archived":false,"fork":false,"pushed_at":"2025-07-07T04:54:24.000Z","size":749,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":23,"default_branch":"main","last_synced_at":"2025-07-07T05:21:03.913Z","etag":null,"topics":["block-step","buildkite","deploy","example","pipeline"],"latest_commit_sha":null,"homepage":"https://buildkite.com/buildkite/deploy-confirm-block-step-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-12-13T22:12:29.000Z","updated_at":"2025-07-04T03:48:06.000Z","dependencies_parsed_at":"2025-07-10T19:02:53.668Z","dependency_job_id":null,"html_url":"https://github.com/buildkite/deploy-confirm-block-step-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/buildkite/deploy-confirm-block-step-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildkite%2Fdeploy-confirm-block-step-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildkite%2Fdeploy-confirm-block-step-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildkite%2Fdeploy-confirm-block-step-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildkite%2Fdeploy-confirm-block-step-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buildkite","download_url":"https://codeload.github.com/buildkite/deploy-confirm-block-step-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildkite%2Fdeploy-confirm-block-step-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264637972,"owners_count":23642086,"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":["block-step","buildkite","deploy","example","pipeline"],"created_at":"2024-11-09T05:28:53.871Z","updated_at":"2025-09-23T13:30:00.900Z","avatar_url":"https://github.com/buildkite.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Buildkite Deploy Confirmation Block Step Example\n\n[![Build status](https://badge.buildkite.com/50a1f7b69a06c7a30871816c2074f3358b67ecb29a8279fe1f.svg?branch=main)](https://buildkite.com/buildkite/deploy-confirm-block-step-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 use a [`block` step](https://buildkite.com/docs/pipelines/block-step) to confirm deployments - but only if the `date` command on the agent returns **Friday**.\n\n👉 **See this example in action:** [buildkite/deploy-confirm-block-step-example](https://buildkite.com/buildkite/deploy-confirm-block-step-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/deploy-confirm-block-step-example/builds/latest?branch=main\"\u003e\n  \u003cimg width=\"2400\" alt=\"Screenshot of deploy confirmation block example pipeline\" src=\".buildkite/screenshot.png\" /\u003e\n\u003c/a\u003e\n\n\u003c!-- docs:start --\u003e\n\n## How it works\n\nIf the current day is **Friday**, a block step will appear asking for manual deploy confirmation. The user can choose to:\n\n- ✅ **Confirm deploy**\n  Respond: `\"Yes, I'm sure. If something goes wrong, I'll fix it\"`\n  → `deploy.sh` runs normally\n\n- ❌ **Cancel deploy**\n  Respond: `\"Err, nah. I've changed my mind\"`\n  → `deploy.sh` still runs but exits with a failure\n\n### Block step preview\n\nHere's what the block step looks like:\n\n![Block step demo](images/demo.gif)\n\n#### ✅ Confirming\n\n\u003cimg src=\"images/yes.png\" width=\"600\" alt=\"Yes confirmation example\" /\u003e\n\n#### ❌ Cancelling\n\n\u003cimg src=\"images/no.png\" width=\"600\" alt=\"No confirmation example\" /\u003e\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%2Fdeploy-confirm-block-step-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuildkite%2Fdeploy-confirm-block-step-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuildkite%2Fdeploy-confirm-block-step-example/lists"}