Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .nextchanges/bundles/auto-deploy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Add `databricks bundle auto-deploy` commands, which deploy a bundle target on every push to a Git branch and show its deploy attempts. ([#7940](https://github.com/databricks/cli/pull/7940), [#7941](https://github.com/databricks/cli/pull/7941), [#7942](https://github.com/databricks/cli/pull/7942), [#7943](https://github.com/databricks/cli/pull/7943), [#7944](https://github.com/databricks/cli/pull/7944))
2 changes: 2 additions & 0 deletions acceptance/bundle/help/bundle-auto-deploy/out.test.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Cloud = false
EnvMatrix.DMS = ["", "true"]
33 changes: 33 additions & 0 deletions acceptance/bundle/help/bundle-auto-deploy/output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

>>> [CLI] bundle auto-deploy --help
Set up and inspect auto-deploy for a bundle target.

Auto-deploy deploys a bundle target whenever commits are pushed to a branch of
the bundle's Git repository. Run these commands from the bundle directory. The
trigger is identified by the bundle's origin URL, its path in the repository
and the target (-t).

Example:
databricks bundle auto-deploy create -t prod --branch main

Usage:
databricks bundle auto-deploy [command]

Available Commands:
attempts List the auto-deploy attempts of this bundle target, or show one
create Deploy this bundle target on every push to a branch
delete Stop auto-deploying this bundle target
get Show the auto-deploy trigger of this bundle target
list List the auto-deploy triggers of this bundle's targets

Flags:
-h, --help[=true|false] help for auto-deploy

Global Flags:
--debug[=true|false] enable debug logging
-o, --output type output type: text or json (default text)
-p, --profile string ~/.databrickscfg profile
-t, --target string bundle target to use (if applicable)
--var strings set values for variables defined in bundle config. Example: --var="foo=bar"

Use "databricks bundle auto-deploy [command] --help" for more information about a command.
1 change: 1 addition & 0 deletions acceptance/bundle/help/bundle-auto-deploy/script
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
trace $CLI bundle auto-deploy --help
1 change: 1 addition & 0 deletions acceptance/bundle/help/bundle/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Usage:
databricks bundle [command]

Available Commands:
auto-deploy Deploy a bundle target on every push to a Git branch
deploy Deploy bundle
deployment Deployment related commands
destroy Destroy deployed bundle resources
Expand Down
3 changes: 0 additions & 3 deletions cmd/bundle/autodeploy/autodeploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ and the target (-t).

Example:
databricks bundle auto-deploy create -t prod --branch main`,

// Hidden until the git-webhooks API is public.
Hidden: true,
}

cmd.AddCommand(newCreateCommand())
Expand Down
Loading