For example I’ve setup name: FOO value: 'bar'
.
I’ve validated that the key value works. Because what does work is:
jobs:
build:
docker:
- image: circleci/node:10.17.0
steps:
- run: |
node something $FOO
However, the following does not work:
Now when I deploy and try to use it in my application it returns undefined:
console.log(process.env.FOO); // returns undefined
I tried setting it under the ‘environment’ key in the config.yml file:
jobs:
build:
docker:
- image: circleci/node:10.17.0
environment:
FOO: $FOO
steps:
- run: |
node something $FOO
But still no change. Any ideas?