Skip to content

Commit

Permalink
Merge pull request #206 from datamade/hcg/etl-action
Browse files Browse the repository at this point in the history
Add ETL action
  • Loading branch information
hancush authored May 13, 2024
2 parents 27a86ba + 240f54c commit 6c95816
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/etl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Import scraped data to configured database

on:
workflow_dispatch:
repository_dispatch:
types: [trigger-workflow]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build containers and import scraped data
run: |
touch .env
docker-compose 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 DJANGO_DATABASE_URL=${secrets.DATABASE_URL} \
app make nightly

0 comments on commit 6c95816

Please sign in to comment.