My earlier question was about creating a Databricks Asset Bundle (DAB) from an existing workspace. I was able to get that working but after further consideration and some experimenting, I need to alter my question. My question is now "how do I create a DAB from a Git repo?"
We have a shared workspace where we've been building our project's Databricks assets (notebooks, python scripts, DLT pipelines, and workflows). The assets are eventually committed to our Azure DevOps Git repo. We create pull requests, code gets reviewed, and eventually the assets are merged into our release branch cleverly named "release". I need to use the release branch as the source for my DAB.
Based on the the example provided in the response, I dug a little deeper and discovered there is a workspace command to export an entire folder (export-dir). I modified the command to use export-dir and passed the path to the repo, "/Repos/release/repo_name_here". Along the way I also needed to change the arguments but, in the end, I was unable to successfully run the command because the specified path could not be found. I think it makes sense since it's likely looking in the workspace and I'm trying to use assets in a repo.
How do I build a DAB from a specific branch in an Azure DevOps Git repo?