How Do You Manage Databricks Project Deployments Using GitHub Actions? #213907
Replies: 2 comments
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
The industry standard and officially recommended way to automate Databricks project deployments with GitHub Actions is using Databricks Asset Bundles (DABs): 1. The Core Architecture: Databricks Asset Bundles (DABs)Instead of custom scripts moving raw notebooks via the REST API, DABs treat your entire Databricks workspace configuration as code:
2. Authentication: Passwordless OIDC (Zero-Trust)Avoid storing static personal access tokens (PATs) in GitHub Secrets. Instead:
3. Example GitHub Actions Deployment WorkflowHere is a production-ready workflow using the official name: Deploy Databricks Asset Bundle
on:
push:
branches: [main]
workflow_dispatch:
permissions:
id-token: write
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install Databricks CLI
uses: databricks/setup-cli@main
- name: Validate Bundle Configuration
run: databricks bundle validate -t prod
env:
DATABRICKS_HOST: ${{ vars.DATABRICKS_HOST }}
DATABRICKS_CLIENT_ID: ${{ secrets.DATABRICKS_CLIENT_ID }}
DATABRICKS_CLIENT_SECRET: ${{ secrets.DATABRICKS_CLIENT_SECRET }}
- name: Deploy Bundle to Production Workspace
run: databricks bundle deploy -t prod
env:
DATABRICKS_HOST: ${{ vars.DATABRICKS_HOST }}
DATABRICKS_CLIENT_ID: ${{ secrets.DATABRICKS_CLIENT_ID }}
DATABRICKS_CLIENT_SECRET: ${{ secrets.DATABRICKS_CLIENT_SECRET }}Key Practices:
If this provides a solid blueprint for your Databricks deployment pipeline, please consider marking this as the accepted answer. |
Uh oh!
There was an error while loading. Please reload this page.
Discussion Type
Product Feedback
Discussion Content
Hi everyone!
I'm interested in learning how developers manage and automate deployments for data engineering projects using GitHub.
When working with platforms like Databricks, managing notebooks, configuration files, environment variables, and deployment workflows can become challenging as projects grow.
I'd love to hear how the community approaches this.
A few questions:
Do you use GitHub Actions to automate Databricks deployments?
How do you manage development, testing, and production environments?
What's your preferred way to store and manage sensitive credentials?
How do you handle failed deployments and rollbacks?
Do you prefer GitHub Actions or another CI/CD tool for data engineering projects?
I'm particularly interested in practical approaches that work well in real-world projects.
What's your deployment workflow, and what would you recommend to developers just getting started?
Looking forward to hearing your experiences and suggestions!
All reactions