Skip to content

Deploy Microsoft WWI packages to Databricks #20

Deploy Microsoft WWI packages to Databricks

Deploy Microsoft WWI packages to Databricks #20

Workflow file for this run

name: 'Build and Deploy to Databricks'
on:
workflow_dispatch:
inputs:
projectFolders:
description: 'List of folders to run'
required: true
type: choice
options:
- raw
- 02_data_product
jobs:
deploy_raw:
name: "Build and Deploy Bundle RAW"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pip install poetry
# Download the Databricks CLI.
# See https://github.com/databricks/setup-cli
- uses: databricks/setup-cli@main
- name: Validation
run: |
pwd
ls -la
databricks bundle validate
working-directory: raw #./${{ github.event.inputs.projectFolders }}/
env:
DATABRICKS_TOKEN: ${{ secrets.SP_TOKEN }}
DATABRICKS_BUNDLE_ENV: dev
# Deploy the bundle to the "qa" target as defined
# in the bundle's settings file.
- name: Deploy
run: databricks bundle deploy -c 1011-082929-h6d1tk5
#working-directory: ./${{ github.event.inputs.projectFolders }}/
working-directory: raw #./${{ github.event.inputs.projectFolders }}/
env:
DATABRICKS_TOKEN: ${{ secrets.SP_TOKEN }}
DATABRICKS_BUNDLE_ENV: dev
deploy_data_product:
name: "Build and Deploy Bundle Data Product"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pip install poetry
# Download the Databricks CLI.
# See https://github.com/databricks/setup-cli
- uses: databricks/setup-cli@main
- name: Validation
run: |
pwd
ls -la
databricks bundle validate
#working-directory: ./${{ github.event.inputs.projectFolders }}/
working-directory: 02_data_product #./${{ github.event.inputs.projectFolders }}/
env:
DATABRICKS_TOKEN: ${{ secrets.SP_TOKEN }}
DATABRICKS_BUNDLE_ENV: dev
# Deploy the bundle to the "qa" target as defined
# in the bundle's settings file.
- name: Deploy
run: databricks bundle deploy -c 1011-082929-h6d1tk5
#working-directory: ./${{ github.event.inputs.projectFolders }}/
working-directory: 02_data_product #./${{ github.event.inputs.projectFolders }}/
env:
DATABRICKS_TOKEN: ${{ secrets.SP_TOKEN }}
DATABRICKS_BUNDLE_ENV: dev