Skip to content

Commit

Permalink
[docs] Update CI/CD example dbt & Dagster+ guide to use DbtProject (#…
Browse files Browse the repository at this point in the history
…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`
  • Loading branch information
maximearmstrong authored Aug 15, 2024
1 parent 0b1ba53 commit 606cf70
Showing 1 changed file with 6 additions and 7 deletions.
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

1 comment on commit 606cf70

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for dagster-docs ready!

✅ Preview
https://dagster-docs-fjgliz5na-elementl.vercel.app
https://master.dagster.dagster-docs.io

Built with commit 606cf70.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.