-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8270 from hashicorp/docs-algolia-tweak
Tweaks for algolia job
- Loading branch information
Showing
4 changed files
with
21 additions
and
8 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
docker: | ||
- image: circleci/buildpack-deps | ||
shell: /usr/bin/env bash -euo pipefail -c | ||
- image: node:12 | ||
steps: | ||
- checkout | ||
- setup_remote_docker | ||
- run: | ||
name: Push content to Algolia Index | ||
command: | | ||
if [ "$CIRCLE_REPOSITORY_URL" != "[email protected]:hashicorp/nomad.git" ]; then | ||
echo "Not Nomad OSS Repo, not indexing Algolia" | ||
exit 0 | ||
fi | ||
cd website/ | ||
npm i | ||
npm install | ||
node scripts/index_search_content.js |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters