Skip to content

Dagster Cloud Serverless and dbt deps #12180

Answered by shalabhc
slopp asked this question in Q&A
Discussion options

You must be logged in to vote

Using dbt deps with fast deploys

If you are using fast deploys (ENABLE_FAST_DEPLOYS: 'true), add the following steps to install dbt-core and run dbt deps to your deploy.yml file, right after the fast deploys checkout step:

      - name: Checkout
        if: env.ENABLE_FAST_DEPLOYS == 'true'
        uses: actions/checkout@v3
        with:
          ref: ${{ github.head_ref }}
          path: project-repo
          
      # Add these two lines:
+     - run: "pip install dbt-core"
+     - run: "dbt deps --project-dir $GITHUB_WORKSPACE/project-repo/dbt_project"

This will install the deps in your dbt_project. The entire project directory is packaged and deployed as part of fast deploys, making…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@patrikdevlin
Comment options

Answer selected by slopp
Comment options

You must be logged in to vote
3 replies
@mjkanji
Comment options

@slopp
Comment options

slopp Nov 27, 2023
Maintainer Author

@slopp
Comment options

slopp Nov 27, 2023
Maintainer Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
type: troubleshooting Related to debugging and error messages integration: dbt Related to dagster-dbt
5 participants