I’m declaring env variable in circle ci config but variable is not set. What I’m doing wrong?
version: 2
jobs:
build:
machine: true # Use a Linux VM instead of docker environment
working_directory: ~/bone
environment:
NODE_ENV: production
steps:
- checkout
- run:
name: "Setup custom environment variables"
command: |
echo 'export NODE_ENV="production"'
- run: echo ${NODE_ENV}
- run: docker network create bone-net
- run: docker-compose up -d
- run: docker exec bone yarn install --no-cache
- run:
name: Test BONE integration db tests
command: docker exec bone yarn db
no_output_timeout: 30m
workflows:
version: 2
build_and_test:
jobs:
- build