Commit bundle.yml #15
Workflow file for this run
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
name: Deploy to QA | |
concurrency: 1 | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
branches: | |
- main | |
paths: | |
- "**/*.yml" | |
- "**/*.py" | |
jobs: | |
deploy: | |
name: "Deploy bundle" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: databricks/setup-cli@main | |
- run: databricks bundle deploy | |
env: | |
DATABRICKS_TOKEN: ${{ secrets.E2_DEMO_WEST_TOKEN }} | |
DATABRICKS_BUNDLE_ENV: qa | |
pipeline_update: | |
name: "Run pipeline update" | |
runs-on: ubuntu-latest | |
needs: | |
- deploy | |
steps: | |
- uses: actions/checkout@v3 | |
# - uses: actions/setup-python@v4 | |
# with: | |
# python-version: 3.11 | |
# cache: 'pip' | |
# - run: pip install -r requirements.txt | |
# working-directory: .github/support | |
- uses: databricks/setup-cli@main | |
- shell: bash | |
name: Run pipeline update | |
run: | | |
set -o pipefail | |
databricks bundle run fe_medium_metrics --refresh-all 2>&1 | tee output.log | |
env: | |
DATABRICKS_TOKEN: ${{ secrets.E2_DEMO_WEST_TOKEN }} | |
DATABRICKS_BUNDLE_ENV: qa | |
# - shell: bash | |
# if: always() | |
# name: Emit annotations | |
# run: | | |
# pipeline_id=$(head -1 output.log | awk -F / '{print $6}') | |
# update_id=$(head -1 output.log | awk -F / '{print $8}') | |
# PYTHONPATH=$PWD:$PWD/.github/support python3 .github/support/emit_annotations.py $pipeline_id $update_id | |
# env: | |
# DATABRICKS_TOKEN: ${{ secrets.E2_DEMO_WEST_TOKEN }} |