Skip to content

Commit

Permalink
feat(FN-692): add lint CI pipeline and disable function apps on featu…
Browse files Browse the repository at this point in the history
…re deploy pipeline
  • Loading branch information
francescastocco committed Dec 21, 2023
1 parent 5f8e5f4 commit fca08ff
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 11 deletions.
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: Deploy Feature Infrastructure using Bicep

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/resource_group_level/**'
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
1 change: 0 additions & 1 deletion .github/workflows/bicep_workflow_feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- feat/stbr-infra
- feat/FN-692/add-what-if-to-bicep-deploy-pipeline
paths:
- '.github/workflows/bicep_az_deployment_group.yml'
- '.github/workflows/bicep_deploy.yml'
Expand Down
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
10 changes: 0 additions & 10 deletions infrastructure/resource_group_level/modules/storage.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -199,16 +199,6 @@ resource utilisationReportsFileShare 'Microsoft.Storage/storageAccounts/fileServ
}
}

resource testFileShare 'Microsoft.Storage/storageAccounts/fileServices/shares@2022-09-01' = {
parent: defaultFileService
name: 'test-file-share'
properties: {
accessTier: 'TransactionOptimized'
shareQuota: 5120
enabledProtocols: 'SMB'
}
}

resource queues 'Microsoft.Storage/storageAccounts/queueServices/queues@2022-09-01' = [for queueName in queueNames: {
parent: queueService
name: queueName
Expand Down

0 comments on commit fca08ff

Please sign in to comment.