I use circleci to build and deploy my nodejs app from bitbucket to heroku. Until now I have been using a simple orbs for this task:
version: 2.1
orbs:
heroku: circleci/heroku@0.0.1
workflows:
heroku_deploy:
jobs:
- heroku/deploy-via-git
Now I am about to have 2 heroku projects: stating and master. How can I setup circleci so that each push to bitbucket develop
triggers a deploy to heroku staging
and each push to bitbucket master
triggers a deploy to heroku production
?