This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/website/rebuild_algolia_docs_search_index.sh
2022-03-23 14:57:33 +00:00

12 lines
258 B
Bash
Executable File

#!/usr/bin/env bash
set -eo pipefail
type jq
type docker
docker run -it \
-e API_KEY="${API_KEY:?must be set}" \
-e APPLICATION_ID="${APPLICATION_ID:?must be set}" \
-e "CONFIG=$(jq -r tostring < docsearch.config.json)" \
algolia/docsearch-scraper