From 81d47a88b1fae7409e69d40fc67df298aad3327c Mon Sep 17 00:00:00 2001 From: oleh_mykolaishyn Date: Thu, 7 Nov 2024 19:51:05 +0200 Subject: [PATCH] test2 --- .github/workflows/cicd.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 1eec53a..6771eb4 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -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 }} @@ -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 }} @@ -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 }}