Skip to content

Commit

Permalink
Split set environment variables into separate command
Browse files Browse the repository at this point in the history
  • Loading branch information
duffn committed Apr 7, 2020
1 parent 6890863 commit fff97c4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,17 @@ commands:
environment:
NUM_PAGES: << parameters.NUM_PAGES >>
- run:
name: Build COLD_START
name: Set environment variables
working_directory: << parameters.working_directory >>
command: |
echo -e "BENCHMARK_DRUPAL_BASE_URL=$BENCHMARK_DRUPAL_<< parameters.NUM_PAGES >>_BASE_URL\n
BENCHMARK_WPGRAPHQL_URL=$BENCHMARK_WPGRAPHQL_<< parameters.NUM_PAGES >>_URL\n
BENCHMARK_CONTENTFUL_SPACE_ID=$BENCHMARK_CONTENTFUL_<< parameters.NUM_PAGES >>_SPACE_ID\n
BENCHMARK_CONTENTFUL_ACCESS_TOKEN=$BENCHMARK_CONTENTFUL_<< parameters.NUM_PAGES >>_ACCESS_TOKEN\n
BENCHMARK_DATOCMS_API_TOKEN=$BENCHMARK_DATOCMS_<< parameters.NUM_PAGES >>_API_TOKEN" >> ~/project/<< parameters.working_directory >>/.env.production
npm run build
BENCHMARK_DATOCMS_API_TOKEN=$BENCHMARK_DATOCMS_<< parameters.NUM_PAGES >>_API_TOKEN" >> .env.production
- run:
name: Build COLD_START
command: npm run build
working_directory: << parameters.working_directory >>
environment:
BENCHMARK_BUILD_TYPE: COLD_START
Expand Down

0 comments on commit fff97c4

Please sign in to comment.