Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/dev-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ jobs:
- name: Check Dev Integration Tests After Deploy
run: |
echo "running the integration yml test job integration_test_job.yml"
databricks bundle run -t dev run_integration_tests
databricks bundle run -t dev integration_test_job
34 changes: 17 additions & 17 deletions .github/workflows/prod-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,26 @@ on:
jobs:

deploy_prod:
name: "Deploy Bundle to Production Environment"
runs-on: ubuntu-latest
environment: prod
env:
DATABRICKS_HOST: ${{ vars.DBX_HOST }}
DATABRICKS_CLIENT_ID: ${{ vars.DBX_SP_ID }}
DATABRICKS_CLIENT_SECRET: ${{ secrets.DBX_SP_SECRET }}

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Databricks CLI
uses: databricks/setup-cli@main
name: "Deploy Bundle to Production Environment"
runs-on: ubuntu-latest
environment: prod
env:
DATABRICKS_HOST: ${{ vars.DBX_HOST }}
DATABRICKS_CLIENT_ID: ${{ vars.DBX_SP_ID }}
DATABRICKS_CLIENT_SECRET: ${{ secrets.DBX_SP_SECRET }}

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Databricks CLI
uses: databricks/setup-cli@main

- name: Deploy Prod Bundle
- name: Deploy Prod Bundle
# trigger target the prod deploy in databricks.yml
run: databricks bundle deploy -t prod --auto-approve
run: databricks bundle deploy -t prod --auto-approve



# qqqq add version and changelog creation step, and give a dab version matching repo version
# - uses: actions/checkout@v4
# - uses: databricks/setup-cli@main
Expand Down
36 changes: 18 additions & 18 deletions .github/workflows/prod-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,24 @@ jobs:
- name: Validate Prod Target
run: databricks bundle validate -t prod

check-staging-is-stable:
name: Check staging still stable before deploy to prod
runs-on: ubuntu-latest
environment: staging
env:
DATABRICKS_HOST: ${{ vars.DBX_HOST }}
DATABRICKS_CLIENT_ID: ${{ vars.DBX_SP_ID }}
DATABRICKS_CLIENT_SECRET: ${{ secrets.DBX_SP_SECRET }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Databricks CLI
uses: databricks/setup-cli@main
check-staging-is-stable:
name: Check staging still stable before deploy to prod
runs-on: ubuntu-latest
environment: staging
env:
DATABRICKS_HOST: ${{ vars.DBX_HOST }}
DATABRICKS_CLIENT_ID: ${{ vars.DBX_SP_ID }}
DATABRICKS_CLIENT_SECRET: ${{ secrets.DBX_SP_SECRET }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Databricks CLI
uses: databricks/setup-cli@main

# The notebook will actually run both as set up atm but maybe its ok for now
- name: Check Staging Integration Tests Before Allowing Prod Deploy
run: |
echo "running the integration yml test job integration_test_job.yml"
databricks bundle run -t staging run_integration_tests
- name: Check Staging Integration Tests Before Allowing Prod Deploy
run: |
echo "running the integration yml test job integration_test_job.yml"
databricks bundle run -t staging integration_test_job

2 changes: 1 addition & 1 deletion .github/workflows/staging-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ jobs:
- name: Check Staging Integration Tests After Deploy
run: |
echo "running the integration yml test job integration_test_job.yml"
databricks bundle run -t staging run_integration_tests
databricks bundle run -t staging integration_test_job
34 changes: 17 additions & 17 deletions .github/workflows/staging-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,23 @@ jobs:
- name: Validate Staging Target
run: databricks bundle validate -t staging

check-dev-is-stable:
name: Check dev still stable before deploy to staging
runs-on: ubuntu-latest
environment: dev
env:
DATABRICKS_HOST: ${{ vars.DBX_HOST }}
DATABRICKS_CLIENT_ID: ${{ vars.DBX_SP_ID }}
DATABRICKS_CLIENT_SECRET: ${{ secrets.DBX_SP_SECRET }}
steps:
- name: Checkout code
uses: actions/checkout@v4
check-dev-is-stable:
name: Check dev still stable before deploy to staging
runs-on: ubuntu-latest
environment: dev
env:
DATABRICKS_HOST: ${{ vars.DBX_HOST }}
DATABRICKS_CLIENT_ID: ${{ vars.DBX_SP_ID }}
DATABRICKS_CLIENT_SECRET: ${{ secrets.DBX_SP_SECRET }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Databricks CLI
uses: databricks/setup-cli@main
- name: Set up Databricks CLI
uses: databricks/setup-cli@main

# The notebook will actually run both as set up atm but maybe its ok for now
- name: Check Dev Integration Tests Before Allowing Sing Deploy
run: |
echo "running the integration yml test job integration_test_job.yml"
databricks bundle run -t dev run_integration_tests
- name: Check Dev Integration Tests Before Allowing Sing Deploy
run: |
echo "running the integration yml test job integration_test_job.yml"
databricks bundle run -t dev run_integration_tests
Loading