-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (39 loc) · 1.32 KB
/
prod-pr.yml
File metadata and controls
47 lines (39 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Prod PR Checks
on:
pull_request:
branches:
- main
jobs:
validate-prod:
name: Validate prod
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: 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
# 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 integration_test_job