New to Kestra?
Use blueprints to kickstart your first workflows.
Clone a dbt project from Git, build and test it on DuckDB, and export the modeled tables to CSV with this declarative Kestra orchestration blueprint.
Run an end-to-end data warehouse and analytics pipeline that clones a dbt project from Git, builds and tests the models on DuckDB, and exports the transformed tables to CSV for downstream analysis. This blueprint is the fastest way to see dbt orchestration in action with Kestra, turning raw source data into clean, analysis-ready datasets in a single declarative workflow with no warehouse credentials or local setup required.
The flow runs three tasks inside one isolated io.kestra.plugin.core.flow.WorkingDirectory so every step shares the same files:
clone_repository uses io.kestra.plugin.git.Clone to pull the kestra-io/dbt-demo repository (the main branch) into the working directory.dbt_build uses io.kestra.plugin.dbt.cli.DbtCLI on the ghcr.io/kestra-io/dbt-duckdb Docker image to run dbt deps and dbt build. The inline profiles block points dbt at a local DuckDB database (dbt.duckdb) with the parquet extension and the CORE engine.python uses io.kestra.plugin.scripts.python.Script with duckdb and pandas to inspect the DuckDB schema, skip raw/stg staging tables, and export each remaining modeled table to a CSV file captured through outputFiles.dbt's own CLI runs models but does not schedule, retry, or connect the steps around it. Kestra wraps the clone, build, and export into one declarative YAML workflow with event and schedule triggers, automatic retries, and full execution lineage and logs across Git, dbt, DuckDB, and Python. You get reproducible containerized runs and captured output artifacts, the orchestration layer dbt alone cannot provide.
ghcr.io/kestra-io/dbt-duckdb image.This demo uses a public repository and a local DuckDB file, so no secrets are required. When you adapt it to a private repo or real warehouse, add credentials with {{ secret('NAME') }}.
python task outputs.url and branch in clone_repository to build your own dbt project.profiles with Snowflake, BigQuery, or Postgres targets.