Specifying context in run block?

      - image: buildpack-deps:xenial
      - 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?


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.