Specifying context in run block?


#1
  deploy:
    docker:
      - image: buildpack-deps:xenial
    steps:
      - checkout
      - run:
          name: Deploy Master to Heroku
          context: Heroku
          command: |
            git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git master

In the above block I have a context named Heroku with the environment variables that I want to use for the deployment however it seems the aren’t being used correctly in this block, I’ve tried moving the context block around to different places with no success. Does anyone know where this should be put?


#2

I figured it out, the bit that I was overlooking was that this belongs in the workflows section not in the jobs section of the config.yml.