I’m trying, via a Workflow, deploy to Heroku whenever we push to our staging
and master
branch.
Below is a test to poush to our QA (to be safe) when I push to my feature branch “2007m”.
Cant get this to trigger. Any pointers?
build:
…
deploy:
docker:
- image: buildpack-deps:trusty
steps:
- checkout
- run:
name: Deploy Staging to Heroku
command: |
git push git@heroku.com:qa-marmosetmusic.git $CIRCLE_SHA1:master &&
heroku run --exit-code rake db:migrate --app qa-marmosetmusic &&
heroku restart --app qa-marmosetmusic
workflows:
version: 2
build-deploy:
jobs:
- build
- deploy:
requires:
- build
filters:
branches:
only: 2007m