Dc 308 phase 1 metadata extraction validation #22
Workflow file for this run
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
| name: Deploy Migration Accelerator through Databricks Asset Bundles | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main, develop ] | |
| types: [ opened, synchronize, reopened ] | |
| workflow_dispatch: | |
| env: | |
| DATABRICKS_HOST: ${{ secrets.DATABRICKS_HOST }} | |
| DATABRICKS_CLIENT_ID: ${{ secrets.DATABRICKS_CLIENT_ID }} | |
| DATABRICKS_CLIENT_SECRET: ${{ secrets.DATABRICKS_CLIENT_SECRET }} | |
| DATABRICKS_AUTH_TYPE: oauth-m2m | |
| POETRY_VERSION: "2.2.1" | |
| PYTHON_VERSION: "3.12" | |
| jobs: | |
| deploy-bundle: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| - name: Install pipx and Poetry | |
| run: | | |
| python -m pip install --upgrade pip pipx | |
| pipx install poetry==${{ env.POETRY_VERSION }} | |
| poetry --version | |
| - name: Install project dependencies | |
| run: | | |
| poetry install --no-interaction --no-ansi | |
| - name: Install Databricks CLI | |
| uses: databricks/setup-cli@main | |
| - name: Validate bundle | |
| run: | | |
| databricks bundle validate | |
| - name: Deploy bundle | |
| run: | | |
| databricks bundle deploy -t dev | |
| databricks bundle summary | |
| databricks bundle resources |