@@ -20,25 +20,26 @@ Here is a quick layout of a deployment file for a mixed-mode project:
2020
2121environments :
2222 default :
23- - name : " mixed-mode-workflow"
24- job_clusters :
23+ workflows :
24+ - name : " mixed-mode-workflow"
25+ job_clusters :
2526 # omitted
26- git_source :
27- git_url : https://some-git-provider.com/some/remote/repo.git
28- git_provider : " git-provider-name"
29- git_branch : " main" # or git_tag or git_commit
30- tasks :
31- - task_key : " notebook-remote"
32- notebook_task :
33- notebook_path : " notebooks/sample_notebook"
34- deployment_config :
35- no_package : true
36- job_cluster_key : " default"
37- - task_key : " packaged"
38- python_wheel_task :
39- package_name : " <your-package-name>"
40- entry_point : " <your-entry-point>"
41- job_cluster_key : " default"
27+ git_source :
28+ git_url : https://some-git-provider.com/some/remote/repo.git
29+ git_provider : " git-provider-name"
30+ git_branch : " main" # or git_tag or git_commit
31+ tasks :
32+ - task_key : " notebook-remote"
33+ notebook_task :
34+ notebook_path : " notebooks/sample_notebook"
35+ deployment_config :
36+ no_package : true
37+ job_cluster_key : " default"
38+ - task_key : " packaged"
39+ python_wheel_task :
40+ package_name : " <your-package-name>"
41+ entry_point : " <your-entry-point>"
42+ job_cluster_key : " default"
4243` ` `
4344
4445The [` git_source`](https://docs.databricks.com/dev-tools/api/latest/jobs.html#operation/JobsCreate) section provides pointer to the remote git branch (`tag` could also be used).
@@ -91,19 +92,20 @@ dbx configure --enable-inplace-jinja-support
9192# only relevant block shown
9293environments:
9394 default:
94- - name: "notebook-from-remote-branch"
95- git_source:
96- git_url: https://some-git-provider.com/some/remote/repo.git
97- git_provider: "git-provider-name"
98- git_branch: "{{env['GIT_BRANCH']}}" # assuming this env variable exists
99- - name: "notebook-from-remote-tag"
100- git_source:
101- git_url: https://some-git-provider.com/some/remote/repo.git
102- git_provider: "git-provider-name"
103- git_tag: "{{env['GIT_TAG']}}" # assuming this env variable exists
104- - name: "notebook-from-remote-commit"
105- git_source:
106- git_url: https://some-git-provider.com/some/remote/repo.git
107- git_provider: "git-provider-name"
108- git_commit: "{{env['GIT_COMMIT']}}" # assuming this env variable exists
95+ workflows:
96+ - name: "notebook-from-remote-branch"
97+ git_source:
98+ git_url: https://some-git-provider.com/some/remote/repo.git
99+ git_provider: "git-provider-name"
100+ git_branch: "{{env['GIT_BRANCH']}}" # assuming this env variable exists
101+ - name: "notebook-from-remote-tag"
102+ git_source:
103+ git_url: https://some-git-provider.com/some/remote/repo.git
104+ git_provider: "git-provider-name"
105+ git_tag: "{{env['GIT_TAG']}}" # assuming this env variable exists
106+ - name: "notebook-from-remote-commit"
107+ git_source:
108+ git_url: https://some-git-provider.com/some/remote/repo.git
109+ git_provider: "git-provider-name"
110+ git_commit: "{{env['GIT_COMMIT']}}" # assuming this env variable exists
109111` ` `
0 commit comments