Skip to content

Merge pull request #2820 from replicatedhq/automation/vendor-portal-r… #2049

Merge pull request #2820 from replicatedhq/automation/vendor-portal-r…

Merge pull request #2820 from replicatedhq/automation/vendor-portal-r… #2049

Workflow file for this run

name: scrape
concurrency: scrape
on:
push:
branches:
- main
workflow_dispatch:
jobs:
scrape:
runs-on: ubuntu-latest
steps:
- name: check out code 🛎d
uses: actions/checkout@v3
# 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:
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
run: |
docker run \
-e ALGOLIA_APP_ID -e ALGOLIA_API_KEY \
-e CONFIG="$(cat config.json)" \
algolia/docsearch-scraper