diff --git a/.circleci/config.yml b/.circleci/config.yml index ba428cda2526c..cf03c78d5d5bf 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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