-
Notifications
You must be signed in to change notification settings - Fork 14
IaC - Staging + Prod #2409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IaC - Staging + Prod #2409
Conversation
- Upgraded tina to latest version - Replaced URL field name with Slug
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR introduces Infrastructure as Code (IaC) for deploying SSW.Rules infrastructure to both Staging and Production environments using Azure Bicep templates. The deployment includes App Services, Application Insights, Azure Container Registry, and integrates these resources into the CI/CD pipeline.
Changes:
- Added Bicep modules for provisioning Azure resources (App Service, Container Registry, Application Insights)
- Created PowerShell deployment script with environment-specific configurations
- Updated GitHub Actions workflows to deploy infrastructure before building and deploying containers
- Updated TinaCMS dependencies and fixed label inconsistency in rule configuration
Reviewed changes
Copilot reviewed 10 out of 13 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| infra/modules/containerRegistry.bicep | Defines ACR with managed identity access and role assignments |
| infra/modules/appService.bicep | Deploys Linux container-based App Service with managed identity and pre-production slot for prod |
| infra/modules/appInsights.bicep | Creates Application Insights linked to shared Log Analytics workspace |
| infra/main.bicep | Orchestrates deployment of all infrastructure components |
| infra/deploy.ps1 | PowerShell script handling environment-specific resource deployment |
| .github/workflows/build-and-deploy.yml | Integrates infrastructure deployment into CI/CD pipeline |
| .github/workflows/build-artifacts.yml | Updates to use dynamically provided ACR name |
| package.json | Updates TinaCMS dependencies to newer versions |
| tina/collection/rule.tsx | Changes "URI" label to "Slug" for consistency |
| tina/tina-lock.json | Updates TinaCMS schema lock file |
| .cache/gatsby-source-git/categories | Adds Git submodule commit reference |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Closing this PR as #2413 takes over |
Description
IaC to deploy both Staging and Prod resource to SSW.Rules.Staging and SSW.Rules resource groups.
This deploys: