I have an angular project that has an api-keys.ts file that looks like this:
export var masterFirebaseConfig = {apiKey: $fireBaseApiKey, authDomain: \'dataJi
Have you tried echo $fireBaseApiKey
(without quotes)?
To troubleshoot CircleCI, it's useful to launch an image locally.
Example: the command below will launch a local ubuntu instance with an environment variable fireBaseApiKey
set to asdf-asdf-asdf
. Your local files will be mounted in /usr/src/app
.
docker run -it -e fireBaseApiKey=asdf-asdf-asdf -v $PWD:/usr/src/app ubuntu bash
To check your environment variable, try:
echo $fireBaseApiKey
cd /usr/src/app
and run your build script, step by step. I find it useful to troubleshoot builds failing for unknown reasons.