Merge pull request #107 from aserto-dev/policy-overview-update #72
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
name: Update search index | |
on: | |
push: | |
branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Read Configuration | |
uses: hashicorp/[email protected] | |
id: vault | |
with: | |
url: https://vault.eng.aserto.com/ | |
token: ${{ secrets.VAULT_TOKEN }} | |
secrets: | | |
kv/data/algolia "API_KEY" | API_KEY; | |
kv/data/algolia "APPLICATION_ID" | APPLICATION_ID; | |
- name: Run Algolia Scrape | |
run: | | |
docker run --rm -e "APPLICATION_ID=${APPLICATION_ID}" -e API_KEY="${API_KEY}" -e "CONFIG=$(cat ./scripts/algolia-config.json)" algolia/docsearch-scraper |