From the “Project Overview” page, you can now set up a rollback pipeline that lets you quickly revert to a previous deployment version when invoked.
Benefits
When you need to perform a rollback quickly, a separate rollback pipeline lets you create a separate CircleCI YML configuration file with your rollback script/logic so that you can avoid potentially lengthy CI steps (ie. tests/lint/etc) when trying to get back into a good state.
Quickstart
Setup is simple and takes less than 5 minutes:
- Annotate your YML configuration file with “deploy markers” to tell CircleCI when a deployment occurs (applicable to any deployment target, not just Kubernetes): Configure deploy markers - CircleCI
- In the CircleCI web app > select the relevant CircleCI Project > Overview > Rollback > follow the wizard to create a YML file with your custom rollback script. Merge the PR
- Next time you need to rollback, click “Rollback by running rollback-pipeline” from the Project Overview page and select your target version to rollback to in the CircleCI web app
Detailed documentation here, comment below with any questions/comments or email sebastian@circleci.com.