Skip to content
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

feat(FN-692): infrastructure improvements #2466

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/bicep_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,18 @@ jobs:
resourceGroupName: ${{ inputs.resourceGroupName }}
action: validate
secrets: inherit

what_if:
needs: validate
uses: ./.github/workflows/bicep_az_deployment_group.yml
with:
environment: ${{ inputs.environment }}
resourceGroupName: ${{ inputs.resourceGroupName }}
action: what-if
secrets: inherit

deploy:
needs: validate
needs: what_if
ChristianMcc marked this conversation as resolved.
Show resolved Hide resolved
uses: ./.github/workflows/bicep_az_deployment_group.yml
with:
environment: ${{ inputs.environment }}
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/bicep_lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Bicep Quality Assurance - Lint

on:
pull_request:
branches:
- feat/stbr-infra
paths:
- '.github/workflows/bicep_az_deployment_group.yml'
- '.github/workflows/bicep_deploy.yml'
- '.github/workflows/bicep_workflow_feature.yml'
- 'infrastructure/**'
workflow_dispatch:

jobs:
lint:
name: Lint Bicep code
runs-on: [self-hosted, linux, deployment]
steps:
- uses: actions/checkout@v3

- name: Install Bicep
run: |
az config set bicep.use_binary_from_path=False
az bicep install
az bicep upgrade

- name: Lint Bicep Code
run: |
az bicep version
az bicep build --file infrastructure/resource_group_level/main.bicep
2 changes: 2 additions & 0 deletions .github/workflows/feature_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ jobs:
az webapp deployment slot delete --name tfs-${{ env.environment }}-${{ matrix.repository }} --resource-group ${{ env.resource_group }} --slot ${{ github.sha }}

deploy-functionapps:
# Disable for now
if: ${{ false }}
# We depend on deploy-webapps to reduce the chances of being throttled
needs: [deployment-environment, deploy-webapps]
name: Deploy Functionapps
Expand Down
1 change: 1 addition & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
"NVARCHAR",
"ORDANANCE",
"organisation",
"parameterised",
"pino",
"pinojs",
"plusplus",
Expand Down