V2: Branch-conditional run commands


#1

Rather than using bash syntax for doing conditional commands like…

  - deploy:
      name: Deploy Master to Heroku
      command: |
        if [ "${CIRCLE_BRANCH}" == "master" ]; then
          git push heroku master
          heroku run python manage.py deploy
          heroku restart
        fi

…might be nice to be able to do something like…

  - deploy:
      name: Deploy Master to Heroku
      branch: ["master"]
      command: |
          git push heroku master
          heroku run python manage.py deploy
          heroku restart

#2

(Would also be pretty great to select the nodes here.)


#3

Looking at https://github.com/circleci/frontend/blob/master/.circleci/config.yml … seems like there’s some branch filtering in the deployment: section on the bottom - for 1.0 backwards feature parity maybe?


#4

Might be also clutter left behind 1.0 and not cleaned up…


#5