Skip to content

Commit

Permalink
Merge pull request #4 from SK204293/dbt-production-daily
Browse files Browse the repository at this point in the history
add production daily
  • Loading branch information
SK204293 authored Oct 3, 2024
2 parents 6c9e392 + 0719861 commit a7d75e6
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/dbt_production_daily.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: dbt_production_daily

on:
schedule:
- cron: 0 7 * * *

jobs:
dbt_production_daily:
name: dbt_production_daily
runs-on: ubuntu-latest

env:
DBT_PROFILES_DIR: ./
DEPLOY_DBT_SNOWFLAKE_ACCOUNT_ID: ${{ secrets.DEPLOY_DBT_SNOWFLAKE_ACCOUNT_ID }}
DEPLOY_DBT_SNOWFLAKE_USERNAME: ${{ secrets.DEPLOY_DBT_SNOWFLAKE_USERNAME }}
DEPLOY_DBT_SNOWFLAKE_PASSWORD: ${{ secrets.DEPLOY_DBT_SNOWFLAKE_PASSWORD }}

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9.7'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install dbt-snowflake==1.8.2
dbt deps --target prod
- name: Run all models
run: |
dbt run --target prod

0 comments on commit a7d75e6

Please sign in to comment.