diff --git a/.circleci/config.yml b/.circleci/config.yml index 79612d94a..dfbe78a7f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1048,6 +1048,19 @@ jobs: - GOTESTSUM_JUNITFILE: /tmp/test-reports/results.xml - NOMAD_SLOW_TEST: 1 - PAGER: cat + algolia_index: + docker: + - image: circleci/buildpack-deps + shell: /usr/bin/env bash -euo pipefail -c + steps: + - checkout + - setup_remote_docker + - run: + command: | + cd website/ + npm i + node scripts/index_search_content.js + name: Push content to Algolia Index test-docker: machine: image: circleci/classic:201808-01 @@ -1460,4 +1473,10 @@ workflows: only: - master context: static-sites + - algolia_index: + filters: + branches: + only: + - stable-website + context: static-sites version: 2 diff --git a/.circleci/config/jobs/algolia_index.yml b/.circleci/config/jobs/algolia_index.yml index 9d211715d..889e87abc 100644 --- a/.circleci/config/jobs/algolia_index.yml +++ b/.circleci/config/jobs/algolia_index.yml @@ -1,4 +1,9 @@ +docker: + - image: circleci/buildpack-deps +shell: /usr/bin/env bash -euo pipefail -c steps: + - checkout + - setup_remote_docker - run: name: Push content to Algolia Index command: |