From 606cf704b5d48cbc6282c45f42c85eddbad93dcc Mon Sep 17 00:00:00 2001 From: Maxime Armstrong <46797220+maximearmstrong@users.noreply.github.com> Date: Thu, 15 Aug 2024 15:04:49 -0400 Subject: [PATCH] [docs] Update CI/CD example dbt & Dagster+ guide to use DbtProject (#23675) ## Summary & Motivation Updates the CI/CD section to reflect the changes when using DbtProject ## How I Tested These Changes Tested in local docs preview with `make next-watch-build` --- .../dbt/using-dbt-with-dagster-plus.mdx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/docs/content/integrations/dbt/using-dbt-with-dagster-plus.mdx b/docs/content/integrations/dbt/using-dbt-with-dagster-plus.mdx index 8f3065948fd54..d088eda2b1fb7 100644 --- a/docs/content/integrations/dbt/using-dbt-with-dagster-plus.mdx +++ b/docs/content/integrations/dbt/using-dbt-with-dagster-plus.mdx @@ -202,21 +202,20 @@ The last step is to update the [CI/CD files](/dagster-plus/references/ci-cd-file 4. After this step, add the following: ```yaml - - name: Parse dbt project and package with Dagster project + - name: Prepare DBT project for deployment if: steps.prerun.outputs.result == 'pex-deploy' run: | pip install pip --upgrade - pip install ## Add dbt adapters here, ex: dbt-duckdb - cd /dbt ## Replace with the dbt project directory - dbt deps - dbt parse + cd project-repo + pip install . --upgrade --upgrade-strategy eager ## Install the Python dependencies from the setup.py file, ex: dbt-core and dbt-duckdb + dagster-dbt project prepare-and-package --file /project.py ## Replace with the project.py location in the Dagster project folder shell: bash ``` When you add this step, you'll need to: - - **Add any [adapters](https://docs.getdbt.com/docs/connect-adapters) used by dbt**. In this example, we're using `dbt-duckdb`. - - **Add the location of your dbt project directory** to the `cd` command. In this example, our project is in the `/dbt` directory. + - **Add any [adapters](https://docs.getdbt.com/docs/connect-adapters) and libraries used by dbt to your `setup.py` file**. In this example, we're using `dbt-core` and `dbt-duckdb`. + - **Add the location of your Dagster project directory** to the `dagster-dbt project prepare-and-package` command. In this example, our project is in the `/my_dbt_and_dagster_project` directory. 5. Save the changes.