-
Notifications
You must be signed in to change notification settings - Fork 11
/
stop-container-daily.yml
29 lines (24 loc) · 1.13 KB
/
stop-container-daily.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
trigger: none
schedules:
- cron: "30 17 * * Mon-Fri" # First number represent the amount of minutes, second represent the hours. In this case 17:30 Monday - Friday
displayName: Stop Self Hosted Agent Container
branches:
include:
- master
always: true
pool: 'Hosted VS2017'
variables:
ResourceGroupName: 'rg-tyrell-app-001'
ACIname: 'aci-tyrell-app-001'
ServiceConnection: 'Tyrell-MSDN'
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# =-= DON't CHANGE ANYTHING BELOW THIS LINE!! =-=
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
steps:
- task: AzurePowerShell@4
inputs:
azureSubscription: $(ServiceConnection)
ScriptType: 'FilePath'
ScriptPath: 'powershell-scripts/StopContainer.ps1'
ScriptArguments: '-ResourceGroupName $(ResourceGroupName) -ResourceName $(ACIname)'
azurePowerShellVersion: 'LatestVersion'