I would like to different environment variables for different branches of my project. I do not want to set the environment variables in my circle.yml file or in a bash script, as that would violate the best practice of separating config variables from code.
I know that you can set environment variables in Circle CI’s Build Settings -> Environment Variables menu. However, it looks like you can only have one set of build settings per project. For that reason, I’d like to have multiple Circle CI “projects” for a single repo. Is that possible?
This question has been asked before but there was no response and the thread was closed for inactivity. A potential work around is to store the environment variables as API_KEY_PROD and API_KEY_STAGING, and have the bash script pull from those values based on branch. However, I’d like to avoid that if possible.
Thanks.