-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: restart app services (#366)
- Loading branch information
Showing
3 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
schedules: | ||
- cron: 0 10 * * * # timezone is UTC | ||
displayName: "Restart app services nightly" | ||
branches: | ||
include: | ||
- dev | ||
always: true | ||
|
||
pr: none | ||
|
||
pool: | ||
vmImage: ubuntu-latest | ||
|
||
stages: | ||
- template: ../pipeline/restart.yml | ||
parameters: | ||
# path is relative to the template path (see line above) | ||
variable_file: ../mst/azure-vars.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
parameters: | ||
- name: variable_file | ||
type: string | ||
|
||
stages: | ||
- stage: RestartAppServices | ||
variables: | ||
- template: ${{ parameters.variable_file }} | ||
jobs: | ||
- job: Restart | ||
steps: | ||
- task: AzureAppServiceManage@0 | ||
displayName: 'Restart Azure App Service: dev' | ||
inputs: | ||
azureSubscription: deployer | ||
Action: 'Restart Azure App Service' | ||
WebAppName: '$(TF_VAR_AGENCY_CARD)-eligibility-server-dev' | ||
- task: AzureAppServiceManage@0 | ||
displayName: 'Restart Azure App Service: test' | ||
inputs: | ||
azureSubscription: deployer | ||
Action: 'Restart Azure App Service' | ||
WebAppName: '$(TF_VAR_AGENCY_CARD)-eligibility-server-test' | ||
- task: AzureAppServiceManage@0 | ||
displayName: 'Restart Azure App Service: prod' | ||
inputs: | ||
azureSubscription: deployer | ||
Action: 'Restart Azure App Service' | ||
WebAppName: '$(TF_VAR_AGENCY_CARD)-eligibility-server-prod' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
schedules: | ||
- cron: 0 10 * * * # timezone is UTC | ||
displayName: "Restart app services nightly" | ||
branches: | ||
include: | ||
- dev | ||
always: true | ||
|
||
pr: none | ||
|
||
pool: | ||
vmImage: ubuntu-latest | ||
|
||
stages: | ||
- template: ../pipeline/restart.yml | ||
parameters: | ||
# path is relative to the template path (see line above) | ||
variable_file: ../sbmtd/azure-vars.yml |