An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# Buildkite Deploy Confirmation Block Step Example

[![Build status](https://badge.buildkite.com/50a1f7b69a06c7a30871816c2074f3358b67ecb29a8279fe1f.svg?branch=main)](https://buildkite.com/buildkite/deploy-confirm-block-step-example/builds/latest?branch=main)
[![Add to Buildkite](https://img.shields.io/badge/Add%20to%20Buildkite-14CC80)](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:

[![Add to Buildkite](https://buildkite.com/button.svg)](https://buildkite.com/new)


Screenshot of deploy confirmation block example pipeline

## 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:

![Block step demo](images/demo.gif)

#### ✅ Confirming

Yes confirmation example

#### ❌ Cancelling

No confirmation example

## License

See [LICENSE.md](LICENSE.md) (MIT)