-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from dbt-labs/feature/templating-yaml-files
- Loading branch information
Showing
34 changed files
with
2,098 additions
and
632 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,6 @@ | |
.vscode | ||
venv/ | ||
__pycache__/ | ||
.envrc | ||
.envrc | ||
.env | ||
jobs_rendered.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
repos: | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: v0.4.9 | ||
hooks: | ||
# Run the linter. | ||
- id: ruff | ||
args: [ --select, I, --fix ] | ||
# Run the formatter. | ||
- id: ruff-format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# yaml-language-server: $schema=../src/schemas/load_job_schema.json | ||
|
||
jobs: | ||
job1: | ||
|
||
account_id: 43791 | ||
dbt_version: null | ||
deferring_job_definition_id: null | ||
environment_id: "{{ environment_id }}" | ||
execute_steps: | ||
- "dbt run --select model1+" | ||
- "dbt run --select model2+" | ||
execution: | ||
timeout_seconds: 0 | ||
generate_docs: false | ||
name: "My Job 1" | ||
project_id: "{{ project_id }}" | ||
run_generate_sources: true | ||
schedule: | ||
cron: "0 */2 * * *" | ||
settings: | ||
target_name: production | ||
threads: 4 | ||
state: 1 | ||
triggers: | ||
custom_branch_only: false | ||
git_provider_webhook: false | ||
github_webhook: false | ||
# we can add more complex logic in Jinja based on our variables | ||
schedule: "{{ env_type == 'prod' }}" | ||
|
||
|
||
job2: | ||
account_id: 43791 | ||
dbt_version: null | ||
deferring_job_definition_id: null | ||
deferring_environment_id: "{{ deferring_environment_id }}" | ||
environment_id: "{{ environment_id }}" | ||
execute_steps: | ||
- dbt run-operation clone_all_production_schemas | ||
- dbt compile | ||
execution: | ||
timeout_seconds: 0 | ||
generate_docs: false | ||
name: CI/CD run | ||
project_id: "{{ project_id }}" | ||
run_generate_sources: false | ||
schedule: | ||
cron: "0 * * * *" | ||
settings: | ||
target_name: TEST | ||
threads: 4 | ||
state: 1 | ||
triggers: | ||
custom_branch_only: true | ||
git_provider_webhook: false | ||
github_webhook: true # this job runs from webhooks | ||
schedule: false # this doesn't run on a schedule | ||
custom_environment_variables: | ||
- DBT_ENV1: My val1 | ||
- DBT_ENV2: My val2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
env_type: qa | ||
project_id: 123 | ||
environment_id: 456 | ||
deferring_environment_id: 789 |
Oops, something went wrong.