CircleCI-Public / heroku-orb

Easily install and use the Heroku CLI with CircleCI to build, test, and deploy your applications to Heroku.
https://circleci.com/orbs/registry/orb/circleci/heroku
MIT License
6 stars 20 forks source link

How to override force flag? #10

Closed amanvishnani closed 4 years ago

amanvishnani commented 4 years ago

I want to set force flag to true.

Docs do not mention the Env variable to set the force flag. If possible please guide me. I am new to circle ci and orbs.

a14m commented 4 years ago

You can provide the force option to the deploy-via-git command Ref: https://circleci.com/orbs/registry/orb/circleci/heroku Ref: https://github.com/CircleCI-Public/heroku-orb/blob/master/src/commands/deploy-via-git.yml#L27-L30

you can use a similar code to this

jobs:
  # deploy master branch 
  deploy-staging:
    steps:
      - checkout
      - heroku/install
      - heroku/deploy-via-git:
          force: true
          branch: master