I am using teamcity to automatically build and test a nodejs application. The problem I am facing is that the application needs to have some environment variables set during the build phase, as well as some secret variables that need to be set during the actual deployment (this is a manual step). These environment variables should be different depending on where the application should be deployed and I have no idea on how to solve this during the actual build.
I guess one solution would be to set up different builds for different environments such as test, stage and production.
Looking into using vault to store my secrets in something like
Any ideas on how to solve this problem?