DenisG
New Contributor III

Hey, glad you liked it.

The Databricks CLI command deploy automatically looks for a databricks.yml file in the root of the repository.

I don't think it's possible to deploy resources from a Git repository (that are not stored as YAML files when the deploy command is invoked). You can point to a directory "resources" where your resources (YAML files) are stored using the include statement in databricks.yml:

include:
  - resources/*.yml

You don't have to copy the YAML files for your jobs for each Databricks workspace. You can reuse the same YAML files by parametrizing them and defining values for these parameters in the targets section in databricks.yml:

targets:
  free:
    mode: development
    workspace:
      host: https://dbc-e667f434-e97e.cloud.databricks.com
    variables:
      git_branch: main
      demo_parameter_value: "Hello, World!"
  qa:
    mode: production
    workspace:
      host: https://dbc-abcdedfghij-999x.cloud.databricks.com
    variables:
      git_branch: qa
      demo_parameter_value: "Goodbye, world!"

 Hope this helps!

Harmony makes small things grow