Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 01:18 AM
I use target overrides to switch between branch and tags on different environments:
resources:
jobs:
my_job:
git_source:
git_url: <REPO-URL>
git_provider: gitHub
targets:
staging:
resources:
jobs:
my_job:
git_source:
# Use Git branch for staging deploys
git_branch: ${var.git_branch}
prod:
resources:
jobs:
my_job:
git_source:
# Use Git tag for prod deploys
git_tag: ${var.git_tag}
Discussion about that can be found here: https://github.com/databricks/cli/issues/1255
You need to repeat that for every job you define, which can be a pain if you have many jobs.
Describe the issue We recently upgraded from v0.212.4 to v0.214.1; essentially, two major version upgrades in one go. Unsurprisingly, our deployment workflow stopped working. We have a case where we want developers putting up PRs to have...