Skip to content

Commit

Permalink
test2
Browse files Browse the repository at this point in the history
  • Loading branch information
oleh_mykolaishyn committed Nov 7, 2024
1 parent 6b56a5b commit 81d47a8
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ jobs:
- name: Configure Dev auth profile
run: |
echo -e "[dev]\nhost=${{ secrets.DATABRICKS_HOST }}" > .databrickscfg
databricks auth env --host ${{ secrets.DATABRICKS_HOST }}
- name: Validation
run: |
databricks bundle validate -p dev
databricks auth env --host ${{ secrets.DATABRICKS_HOST }}
databricks bundle validate \
-p dev
env:
DATABRICKS_CONFIG_FILE: .databrickscfg
DATABRICKS_TOKEN: ${{ secrets.DATABRICKS_TOKEN }}
Expand All @@ -42,7 +43,9 @@ jobs:
if: ${{ github.event.inputs.cluster_id != '' }}
run: |
databricks bundle deploy \
-c ${{ github.event.inputs.cluster_id }}
-c ${{ github.event.inputs.cluster_id }} \
-p dev
env:
DATABRICKS_CONFIG_FILE: .databrickscfg
DATABRICKS_TOKEN: ${{ secrets.DATABRICKS_TOKEN }}
Expand All @@ -51,7 +54,9 @@ jobs:
- name: Deploy with default cluster
if: ${{ github.event.inputs.cluster_id == '' }}
run: |
databricks bundle deploy
databricks bundle deploy \
-p dev
env:
DATABRICKS_CONFIG_FILE: .databrickscfg
DATABRICKS_TOKEN: ${{ secrets.DATABRICKS_TOKEN }}
Expand Down

0 comments on commit 81d47a8

Please sign in to comment.