I have different branches on Git, each branch is a different environment. All build steps of all branches are the same. I put all configuration variables into Context.
Here is my config.yml
(...omitted unnecessary parts...)
workflows:
version: 2
build_and_deploy:
jobs:
- build_step_1:
context: project-env-${CIRCLE_BRANCH}
- build_step_2:
context: project-env-${CIRCLE_BRANCH}
requires:
- build_step_1
Now, when I push into branch dev
, I expect it should build and load context project-env-dev
; but it doesn’t.
It seems to me that CircleCI doesn’t render environment variables in context name.