Skip to content

Commit ec30b47

Browse files
committed
Docs: add CI guidance for Bicep Lint and What-If workflows
1 parent 2dc5c10 commit ec30b47

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

docs/DEPLOYMENT_GUIDE.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,3 +1140,25 @@ az resource delete --ids $(az resource list --resource-group $RESOURCE_GROUP_NAM
11401140
---
11411141
11421142
*Last updated: August 2025*
1143+
1144+
## ✅ CI Checks: Bicep Lint and What-If
1145+
1146+
This repo includes two lightweight GitHub Actions to keep deployments safe:
1147+
1148+
- Bicep Lint: Builds all .bicep files and treats warnings as errors
1149+
- File: .github/workflows/bicep-lint.yml
1150+
- Triggers: Pull requests that touch AzureArchitecture/**/*.bicep or bicepconfig.json
1151+
- What it does: Installs Bicep CLI and runs bicep build -w on each template
1152+
1153+
- What-If (Smoke): Manual workflow to preview changes using the smoke parameters
1154+
- File: .github/workflows/bicep-whatif.yml
1155+
- Triggers: Manual (workflow_dispatch)
1156+
- Inputs: resourceGroup (default rg-stamps-smoke), subscriptionId, location (default eastus)
1157+
- Secrets required (OIDC): AZURE_CLIENT_ID, AZURE_TENANT_ID. Alternatively, switch to azure/login@v1 with a single AZURE_CREDENTIALS secret (JSON) if OIDC isn’t available.
1158+
1159+
How to run What-If:
1160+
1) In GitHub Actions, select "Bicep What-If (Smoke)"
1161+
2) Provide your Subscription ID; use or change the default Resource Group and Location
1162+
3) Ensure required secrets exist as noted above
1163+
1164+
Tip: The workflow uses AzureArchitecture/examples/main.sample.smoke.json and validates with az deployment group what-if.

0 commit comments

Comments
 (0)