HiveBrain v1.2.0
Get Started
← Back to all entries
patternMinor

CircleCI manually approved Deployment with Rollback

Submitted by: @import:stackexchange-devops··
0
Viewed 0 times
rollbackwithcirclecimanuallyapproveddeployment

Problem

The new CircleCI 2.0 configuration allows to have a step of type approve which waits for user input. Is there some way to not just deploy code using manual stop, but also have a rollback to a previous version based on user input?

Solution

The answer, no.

The best ways to rollback would be to use git revert, which then adds the rollback to history (which is a good thing), and then push that like any other commit. The other would be to use the git hash of the commit you'd like to rollback to and build it with the CircleCI API.

Right now, you could also attempt to rebuild and older build via the UI but this isn't suggest for deploys & Workflows. Too many variables for safe, reproducible deploys.

  • Ricardo N Feliciano



Developer Evangelist, CircleCI

Context

StackExchange DevOps Q#1494, answer score: 1

Revisions (0)

No revisions yet.