Skip to content

nightly-scrape-done #10

nightly-scrape-done

nightly-scrape-done #10

Workflow file for this run

name: Import scraped data to configured database
on:
workflow_dispatch:
repository_dispatch:
types: [nightly-scrape-done]
jobs:
etl:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: "deploy"
- name: Build containers and import scraped data
# It would be awesome to be able to send the make target in the payload
# of the triggering workflow, defaulting to "nightly" for manual runs
run: |
touch .env
docker-compose -f docker-compose.etl.yml run --rm \
-e AWS_STORAGE_BUCKET_NAME=${{ secrets.AWS_STORAGE_BUCKET_NAME }} \
-e AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} \
-e AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }} \
-e DATABASE_URL=${{ secrets.DATABASE_URL }} \
app make nightly