staging profile nullifying #10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #No code quality checks staging has done it | ||
| name: Deploy to Production Databricks Workspace | ||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| jobs: | ||
| deploy_prod: | ||
| name: "Deploy Bundle to Production Environment" | ||
| runs-on: ubuntu-latest | ||
| needs: testing | ||
| environment: prod | ||
| env: | ||
| DATABRICKS_HOST: ${{ vars.DBX_HOST }} | ||
| DATABRICKS_CLIENT_ID: ${{ vars.DBX_SP_ID }} | ||
| DATABRICKS_CLIENT_SECRET: ${{ secrets.DBX_SP_SECRET }} | ||
| steps: | ||
| # qqqq add version and changelog creation step, and give a dab version matching repo version | ||
| - uses: actions/checkout@v4 | ||
| - uses: databricks/setup-cli@main | ||
| - name: Deploy bundle | ||
| run: databricks bundle deploy -t prod --auto-approve | ||
| working-directory: . | ||