Skip to content

Commit

Permalink
microsoft demo wwi
Browse files Browse the repository at this point in the history
  • Loading branch information
oleh_mykolaishyn committed Nov 7, 2024
1 parent ea46910 commit e16eefb
Show file tree
Hide file tree
Showing 222 changed files with 10,687 additions and 43 deletions.
41 changes: 0 additions & 41 deletions .github/cicd.yml

This file was deleted.

64 changes: 64 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: 'Deploy Microsoft WWI packages to Databricks'

on:
workflow_dispatch:
inputs:
cluster_id:
description: 'Optionaly overwrite job cluster'
required: false
type: string
default: ''

jobs:
deploy:
name: "Build and Deploy Bundle to the Workspaces"
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: Configure demo auth profile
run: |
echo -e "[demo]\nhost=${{ secrets.DATABRICKS_HOST }}" > .databrickscfg
- name: Validation
run: |
databricks auth env --host ${{ secrets.DATABRICKS_HOST }}
databricks bundle validate \
-p demo
env:
DATABRICKS_CONFIG_FILE: .databrickscfg
DATABRICKS_TOKEN: ${{ secrets.DATABRICKS_TOKEN }}
DATABRICKS_BUNDLE_ENV: demo

# Deploy the bundle to the "demo" target as defined
# in the bundle's settings file.
- name: Deploy with custom cluster
if: ${{ github.event.inputs.cluster_id != '' }}
run: |
databricks bundle deploy \
-c ${{ github.event.inputs.cluster_id }} \
-p demo
env:
DATABRICKS_CONFIG_FILE: .databrickscfg
DATABRICKS_TOKEN: ${{ secrets.DATABRICKS_TOKEN }}
DATABRICKS_BUNDLE_ENV: demo

- name: Deploy with default cluster
if: ${{ github.event.inputs.cluster_id == '' }}
run: |
databricks bundle deploy \
-p demo
env:
DATABRICKS_CONFIG_FILE: .databrickscfg
DATABRICKS_TOKEN: ${{ secrets.DATABRICKS_TOKEN }}
DATABRICKS_BUNDLE_ENV: demo

Loading

0 comments on commit e16eefb

Please sign in to comment.