nightly-scrape-done #10
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: 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 |