In our Circle 1.0 config, we used deployments to perform a number of optional steps based on the current branch name and tag. In Circle 2.0, from what I’ve seen in examples, the suggested approach is to simply have if conditions in a batch script.
For readability however it would be even nicer if you could specify a condition for each step, and have that step not appear at all in the UI unless the condition was met.
This also means that you could add a condition on steps other than “run”. For example, some, but not all, of our branches require Docker, so we have a setup_docker_engine step, but for the builds where Docker is not required, that adds a delay for no reason.
Any plans in this direction? Or an existing way of making built in steps such as setup_docker_engine optional?