Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 693 Bytes

exercise-3.md

File metadata and controls

19 lines (16 loc) · 693 Bytes

Add a manual approval step before deploying

Workflows may be configured to wait for manual approval. A manual approval is convenient if your release process contains a manual sanity check before releasing to production. In the workflow given below, the test_deploy job is always executed. The prod_deploy job however is only executed after a manual approval:

workflows:
  commit:
    jobs:
      - test_deploy
      - hold:
          type: approval
          requires:
            - test_deploy
      - prod_deploy:
          requires:
            - hold 

Exercise 3.1 Open the .circleci/config.yml file and add a manual approval step before executing the deploy job