I'm using DAB to deploy a "jobs" resource into Databeicks and into two environments: "dev" and "prod". I pull the notebooks from a remote git repository using "git_resource", and defined the default job to use a tag to find which version to pull. However, in deploying to "dev" I would like to use a branch instead of tag. This could be done in the target configuration for "dev" but the problem is that it will also keep the tag along with the branch, which fails the deployment. So, the question is how to ignore the tag where a branch is defined?
Here are a snippet of my config files:
default_job.yml:
resources:
jobs:
job_name:
name: "name"
...
git_source:
git_url: "<git_url>"
git_provider: "<provider>"
git_tag: "<tag>"
...
dev.yml:
targets:
dev:
mode: development
...
resources:
jobs:
job_name:
git_source:
git_branch: "<branch>"
This will end up into the following config:
git_source": {
""git_branch": "<branch>",
"git_provider": "<provider>",
"git_tag": "<tag>",
"git_url": "<git_url>"
}