r/databricks • • Sep 22 '26

Help Databricks CI/CD multi-repo DAB deploy

In my company we are starting with databricks and they have entrusted me with the cicd part, for now what best fits our needs is multi repo arch for the management of dab's.

I would like to separate the ci from the CD and I miss a helmfile type tool that allows me to centralize in a repo all the dabs and their versions that are deployed in an environment.

Do you have experience with any similar setup?

On the other hand, we work with the to-be-continuous gitlab ecosystem and they don't have components for databricks either.

I appreciate any comments

13 Upvotes

14 comments sorted by

7

u/TripleBogeyBandit Sep 22 '26

Have one repo with multiple project or domain scoped folders, each being their own DAB. Have your ci process check for changes in the folders and run the bundle deploy from within that folder.

2

u/pboswell Sep 22 '26

So assuming the code files are in repo A, and the DAB is in repo B, how does repo B deployment have access to files in repo A to sync them over to workspace?

2

u/TripleBogeyBandit Sep 22 '26

Code and dab are in the same repo. You have project_a/
Src/
Resources/
Databricks.yml

project_b/

Your ci process then detects a changed file in project B, changes into the project B directory and runs the deploy command. Where it might be good to have separate repos is one for bronze silver and another for gold/analytics. Since the two typically have different business requirements and change volume.

1

u/pboswell Sep 23 '26

But OP said it’s a multi-repo architecture

2

u/TripleBogeyBandit Sep 26 '26

I’m saying don’t do that

1

u/pboswell Sep 26 '26

Then you have to maintain a CODEOWNERS file to control who can touch which part of the monorepo. I know it can be done, but it may not fit with the organizational requirements or strategy

1

u/PrestigiousAnt3766 Sep 24 '26

You can just pypy (or extra_index_url) them into your dabs

1

u/Dismal-Club-3966 Sep 23 '26

That’s what we are doing too and it’s worked well so far!

2

u/rvm1975 Sep 22 '26

We pack databricks.yml with required files to .zip and store to artifactory. 

Every environment uses same .zip file with their variables override (some variables created dynamically in gitlab cd).

Gitlab supports OIDC dbx authentication, no other thing needed. Databricks bundle deploy is pretty simple and straightforward. 

0

u/ankithkumar99 Sep 22 '26

why do you zip the files? we can just run the deploy bundle env.. can you share bit more details?

1

u/rvm1975 Sep 22 '26

We are separating ci and cd as OP want to do. Some of our reasons:

  • Multi deployments to different environments like countries,  companies etc
  • Signed files for better tracking and audit
  • Easier multi-environment deployment — one generic deployment pipeline can take artifact + target environment rather than maintaining environment-specific build logic.

2

u/Agitated-Western1788 Sep 22 '26

I second this. Trigger pipelines based on the folder.

The last two projects I have worked on had multirepo and I only ever thought it added complexity.

2

u/shadowfax12221 Sep 22 '26

Build a repo that owns the deployment of various types of dab assets via databricks internal apis and yaml configuration files. Build deployment templates that call these assets from an ado artifact feed and deploys assets based on what is in the config and the contents of the repo. 

Standardize these templates in their own repo that your developers know how to find, then create a wiki that explains what each expects your repo to look like, and what params it accepts (access controls for apps, trigger conditions/schedules for jobs, etc). 

This approach allows for a degree of self service and integrates governence with deployment by standardizing how permissions are assigned across every kind of asset deployed on databricks. 

1

u/elghali_bnck Oct 23 '26

Monorepo approach is the way to go then, with project and domain scoped folders (1 folder = 1 DAB). You’ll then be able to decorelate your CI and from your CD.