Skip to content

Commit

Permalink
Merge pull request #31 from Dorianteffo/dev_dorian
Browse files Browse the repository at this point in the history
dag code
  • Loading branch information
Dorianteffo committed Mar 21, 2024
2 parents 1e29867 + 0274b12 commit 21a8a71
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/cd_airflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ jobs:
TARGET: "/home/ubuntu/airflow"
SCRIPT_AFTER: |
cd airflow
echo -e "AIRFLOW_UID=$(id -u)\nAIRFLOW_GID=0" > .env
docker build -t apache-airflow:dbt-snowflake-dorian .
docker compose up airflow-init
docker compose up -d
docker compose down airflow-scheduler
docker compose up -d airflow-scheduler
##################################################
Expand Down
2 changes: 1 addition & 1 deletion airflow/dags/cosmos_dbt_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

@dag(
schedule_interval="@daily",
start_date=datetime(2024, 3, 20),
start_date=datetime(2024, 3, 22),
catchup=False,
tags=["dbt", "snowflake"],
dag_id='dbt-snowflake-dag'
Expand Down
4 changes: 3 additions & 1 deletion airflow/dags/dbt/dbt_transformation/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,7 @@ models:
+materialized: table
+schema: intermediate

# marts:
marts:
+materialized: table
+schema: finance

0 comments on commit 21a8a71

Please sign in to comment.