-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (28 loc) · 1.05 KB
/
deploy-prod-bulk.yml
File metadata and controls
32 lines (28 loc) · 1.05 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
# Orchestrator workflow for deploying Fabric items to the Prod workspace via the Bulk Import API.
#
# Alternative to deploy-prod.yml. Both fire on push to main; only one runs based
# on the DEPLOY_METHOD repository variable:
# - DEPLOY_METHOD = 'bulk' → this workflow runs
# - DEPLOY_METHOD = 'fabric-cicd' or '' → deploy-prod.yml runs
# - any other value → both skip (safe default)
#
# 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 (Bulk API)
on:
push:
branches: [main]
paths: ["data/fabric/**", ".github/workflows/**"]
permissions:
contents: read
jobs:
deploy-bulk:
name: Deploy via Bulk Import API
if: vars.DEPLOY_METHOD == 'bulk'
uses: ./.github/workflows/reusable-deploy-bulk.yml
with:
environment: Prod
secrets: inherit