forked from killbill/killbill-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (24 loc) · 740 Bytes
/
indexer.yml
File metadata and controls
25 lines (24 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: Indexer
on:
workflow_run:
workflows: ["Publish"]
types:
- completed
jobs:
indexing:
runs-on: ubuntu-latest
steps:
- name: check out code 🛎
uses: actions/checkout@v2
# when scraping the site, inject secrets as environment variables
# then pass their values into the Docker container using "-e" syntax
# and inject config.json contents as another variable
- name: scrape the site 🧽
env:
APPLICATION_ID: ${{ secrets.ALGOLIA_APP_ID }}
API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
run: |
docker run \
-e APPLICATION_ID -e API_KEY \
-e CONFIG="$(cat config.json)" \
algolia/docsearch-scraper:v1.6.0