How to achive rollback startegy with cirleci 2.0?
Sample config:
build: # build project
publish: # put on storage
deploy: # deploy to cloud
rollback: # remove from storage & cloud
e2e: # tests
workflows:
build_and_deploy:
jobs:
- e2e:
requires:
- deploy
- ....
on_failed: # (1)
- # run rollback
What is configuration to rollback deploy on e2e test failed?