-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
oleh_mykolaishyn
committed
Nov 7, 2024
1 parent
ea46910
commit e16eefb
Showing
222 changed files
with
10,687 additions
and
43 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
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 | ||
|
Oops, something went wrong.