https://github.com/buildkite/deploy-confirm-block-step-example
An example pipeline that uses a block step to confirm deployments on Fridays.
https://github.com/buildkite/deploy-confirm-block-step-example
block-step buildkite deploy example pipeline
Last synced: 18 days ago
JSON representation
An example pipeline that uses a block step to confirm deployments on Fridays.
- Host: GitHub
- URL: https://github.com/buildkite/deploy-confirm-block-step-example
- Owner: buildkite
- License: mit
- Created: 2016-12-13T22:12:29.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2025-07-07T04:54:24.000Z (3 months ago)
- Last Synced: 2025-07-07T05:21:03.913Z (3 months ago)
- Topics: block-step, buildkite, deploy, example, pipeline
- Language: Shell
- Homepage: https://buildkite.com/buildkite/deploy-confirm-block-step-example/builds/latest?branch=main
- Size: 731 KB
- Stars: 5
- Watchers: 23
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Buildkite Deploy Confirmation Block Step Example
[](https://buildkite.com/buildkite/deploy-confirm-block-step-example/builds/latest?branch=main)
[](https://buildkite.com/new)This 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**.
👉 **See this example in action:** [buildkite/deploy-confirm-block-step-example](https://buildkite.com/buildkite/deploy-confirm-block-step-example/builds/latest?branch=main)
See 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:
[](https://buildkite.com/new)
## How it works
If the current day is **Friday**, a block step will appear asking for manual deploy confirmation. The user can choose to:
- ✅ **Confirm deploy**
Respond: `"Yes, I'm sure. If something goes wrong, I'll fix it"`
→ `deploy.sh` runs normally- ❌ **Cancel deploy**
Respond: `"Err, nah. I've changed my mind"`
→ `deploy.sh` still runs but exits with a failure### Block step preview
Here's what the block step looks like:

#### ✅ Confirming
#### ❌ Cancelling
## License
See [LICENSE.md](LICENSE.md) (MIT)