-
Notifications
You must be signed in to change notification settings - Fork 1
/
dbt-duckdb.yaml
48 lines (44 loc) · 1.38 KB
/
dbt-duckdb.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
id: dbt-duckdb
namespace: company.team
tasks:
- id: dbt
type: io.kestra.plugin.core.flow.WorkingDirectory
tasks:
- id: clone_repository
type: io.kestra.plugin.git.Clone
url: https://github.com/kestra-io/dbt-example
branch: main
- id: dbt_build
type: io.kestra.plugin.dbt.cli.DbtCLI
taskRunner:
type: io.kestra.plugin.scripts.runner.docker.Docker
containerImage: ghcr.io/kestra-io/dbt-duckdb:latest
commands:
- dbt deps
- dbt build
profiles: |
my_dbt_project:
outputs:
dev:
type: duckdb
path: ":memory:"
fixed_retries: 1
threads: 16
timeout_seconds: 300
target: dev
extend:
title: Git workflow for dbt with DuckDB
description: >
To run dbt with DuckDB, this flow does the following:
1. Clones a dbt Git repository from GitHub,
2. Pulls a public [container image with the latest package
dependencies](https://github.com/kestra-io/examples/pkgs/container/dbt-duckdb)
3. Runs dbt CLI commands in a Docker container.
tags:
- Git
- dbt
- DuckDB
ee: false
demo: true
meta_description: This flow will clone a dbt Git repository from GitHub, pull a
public repository and then run dbt CLI commands in a Docker container.