name: deploy description: Use when the user asks to deploy, ship, release, or push OntoBricks to Databricks. Wraps the Databricks Asset Bundle deploy for the FastAPI app and the MCP server, with the bootstrap-perms safety net described in README.md.
Deploy OntoBricks
The canonical deploy steps are in README.md §Deploying / Installing and
.cursorrules §"When asking to deploy". The Make targets live in
Makefile. This skill only sequences pre-flight and post-deploy checks.
Pre-flight (verify before invoking make)
databricks --version— CLI present.databricks auth describe— authenticated against the right workspace. If not, use thedatabricks-authenticationskill.git status— clean tree (or user has acknowledged uncommitted changes).uv run pytest -q— tests pass. Do not deploy on red.
Deploy
| Command | When |
|---|---|
make deploy |
dev — deploy + start FastAPI app |
make deploy-all |
dev — deploy + start both apps (FastAPI + MCP) |
make deploy-mcp |
only MCP server changed |
make deploy-prod |
production target |
make deploy-no-run |
deploy artifacts without starting apps |
make bundle-validate |
validate databricks.yml only |
make bundle-summary |
preview what will deploy |
make deploy runs scripts/bootstrap-app-permissions.sh automatically on
the first deploy (see README.md). If the user runs databricks bundle deploy directly, run make bootstrap-perms once afterwards (idempotent).
Post-deploy
- Compute > Apps > ontobricks > Resources — confirm
sql-warehouseandvolumeare bound. If missing, the user must bind them manually (binding cannot be done via DAB). - Logs — confirm startup completed cleanly.
- If the registry volume is empty, tell the user to open Settings > Registry > Initialize in the app UI.
- Hit
/healthzto confirm the FastAPI app is responsive.
Release flow
When the user says "release vX.Y.Z" rather than just "deploy":
make test- Bump version in
pyproject.toml git add -A && git commit -m "Release vX.Y.Z" && git tag vX.Y.Z && git push origin main --tagsmake deploy(ormake deploy-prod)- Update the changelog (
changelogskill).
Don't
- Don't deploy without running tests.
- Don't
databricks bundle deploydirectly without rememberingmake bootstrap-permsfor first-time deploys. - Don't claim deploy is done until the app status is confirmed (or the user accepts
deploy-no-run).