-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (30 loc) · 1.31 KB
/
deploy-prod.yml
File metadata and controls
34 lines (30 loc) · 1.31 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
# Orchestrator workflow for deploying Fabric items to the Prod workspace.
#
# Deploys all supported items via fabric-cicd. The reusable workflow handles
# phased deployment internally (Lakehouse + Ontology first, then everything
# else) to satisfy fabric-cicd dependency resolution.
#
# The `prod` GitHub Environment should have protection rules configured
# (e.g., required reviewers, branch policy restricting to main only).
#
# The ETL workflow (etl-prod.yml) triggers automatically via workflow_run
# once deployment completes successfully.
name: Deploy to Prod (fabric-cicd)
on:
push:
branches: [main]
paths: ["data/fabric/**", ".github/workflows/**"]
permissions:
contents: read
jobs:
deploy-fabric-cicd:
name: Deploy via fabric-cicd
# Gated by the DEPLOY_METHOD repository variable. Runs when unset or set to
# 'fabric-cicd'. Set DEPLOY_METHOD='bulk' to route deployments through
# deploy-prod-bulk.yml instead. Any other value disables both workflows.
if: vars.DEPLOY_METHOD == '' || vars.DEPLOY_METHOD == 'fabric-cicd'
uses: ./.github/workflows/reusable-deploy-fabric-cicd.yml
with:
environment: Prod
item_type_in_scope: '["Lakehouse", "Ontology", "VariableLibrary", "Notebook", "SemanticModel", "Report", "DataAgent"]'
secrets: inherit