Skip to content

Commit

Permalink
chore: Create Summary prod deployment container template (#696)
Browse files Browse the repository at this point in the history
- [ ] New feature
- [ ] Bug fix
- [ ] High impact

**Description of work:**
[55224](https://statoil-proview.visualstudio.com/787035c2-8cf2-4d73-a83e-bb0e6d937eec/_workitems/edit/55224)

Adds prod deployment template

Disables new az functions

Fixed minor typo in deployment script

**Testing:**
- [x] Can be tested
- [ ] Automatic tests created / updated
- [x] Local tests are passing

Summary Api and az functions have been deployed to production with this
PR.

**Checklist:**
- [ ] Considered automated tests
- [ ] Considered updating specification / documentation
- [x] Considered work items 
- [x] Considered security
- [x] Performed developer testing
- [x] Checklist finalized / ready for review
  • Loading branch information
Jonathanio123 authored Sep 12, 2024
1 parent bea5ea2 commit 24f315a
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pipelines/summary-api-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ stages:
action: deploy
manifests: $(deploymentManifest)

- template: templates/deploy-container-app.yml
- template: templates/deploy-summary-container-app.yml
parameters:
azureSubscription: $(subscriptionServiceProd)
environment: $(envName)
Expand Down
23 changes: 23 additions & 0 deletions pipelines/templates/deploy-summary-container-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
parameters:
azureSubscription: 'PROJECT_PORTAL (63b791ae-b2bc-41a1-ac66-806c4e69bffe)'
environment: ''
clientId: ''
imageName: ''
fusionEnvironment: 'fprd'
templateFile: $(Build.SourcesDirectory)src/Fusion.Summary.Api/Deployment/webapp.template.json

steps:
- checkout: self
- task: AzurePowerShell@5
displayName: 'Deploy ARM template'
inputs:
azureSubscription: ${{ parameters.azureSubscription }}
ScriptType: FilePath
FailOnStandardError: true
azurePowerShellVersion: 'LatestVersion'
ScriptPath: src/Fusion.Summary.Api/Deployment/deploy-webapp.ps1
ScriptArguments: >
-environment ${{ parameters.environment }}
-clientId ${{ parameters.clientId }}
-fusionEnvironment ${{ parameters.fusionEnvironment }}
-imageName ${{ parameters.imageName }}
6 changes: 3 additions & 3 deletions src/Fusion.Summary.Api/Deployment/webapp.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"fusion-env-name": "[toLower(parameters('fusion-env-name'))]",
"location": "[resourceGroup().location]",
"api-name": "[concat('fap-summary-api-', variables('env-name'))]",
"keyvault-name": "[concat('kv-fap-summary-', variables('env-name'))]",
"ai-api-name": "[concat('ai-fap-summary-', variables('env-name'))]"
"keyvault-name": "[concat('kv-fap-resources-', variables('env-name'))]",
"ai-api-name": "[concat('ai-fap-resources-', variables('env-name'))]"
},
"resources": [
/* API SERVICE */
Expand Down Expand Up @@ -142,7 +142,7 @@
]
},
"dependsOn": [
"[resourceId('Microsoft.Web/Sites', variables('api-name'))]"
"[resourceId('Microsoft.Web/sites', variables('api-name'))]"
]
}
]
Expand Down
24 changes: 24 additions & 0 deletions src/Fusion.Summary.Functions/Deployment/disabled-functions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,29 @@
{
"environment": "pr",
"disabledFunctions": []
},
{
"environment": "ci",
"disabledFunctions": [
"weekly-department-recipients-sync",
"weekly-department-summary-sender",
"weekly-department-summary-worker"
]
},
{
"environment": "fqa",
"disabledFunctions": [
"weekly-department-recipients-sync",
"weekly-department-summary-sender",
"weekly-department-summary-worker"
]
},
{
"environment": "fprd",
"disabledFunctions": [
"weekly-department-recipients-sync",
"weekly-department-summary-sender",
"weekly-department-summary-worker"
]
}
]

0 comments on commit 24f315a

Please sign in to comment.