Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Update CI/CD example dbt & Dagster+ guide to use DbtProject #23675

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions docs/content/integrations/dbt/using-dbt-with-dagster-plus.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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 <ADAPTERS> ## Add dbt adapters here, ex: dbt-duckdb
cd <PROJECT_REPOSITORY>/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 <DAGSTER_PROJECT_FOLDER>/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.

Expand Down