mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-15 22:36:46 +00:00
packer: add pause after windows update (#4192)
This commit is contained in:
committed by
GitHub
parent
6f39c8aef0
commit
9c5cf733d9
@@ -144,11 +144,12 @@
|
||||
{
|
||||
"type": "windows-restart",
|
||||
"check_registry": true,
|
||||
"restart_check_command": "powershell -command \"& {if (-not (Get-Process TiWorker.exe -ErrorAction SilentlyContinue)) { Write-Output 'Restart complete' }}\"",
|
||||
"restart_check_command": "powershell -command \"& {if ((-not (Get-Process TiWorker.exe -ErrorAction SilentlyContinue)) -and (-not [System.Environment]::HasShutdownStarted) ) { Write-Output 'Restart complete' }}\"",
|
||||
"restart_timeout": "30m"
|
||||
},
|
||||
{
|
||||
"type": "powershell",
|
||||
"pause_before": "2m",
|
||||
"scripts": [
|
||||
"{{ template_dir }}/scripts/Installers/Install-VCRedist.ps1",
|
||||
"{{ template_dir }}/scripts/Installers/Install-Docker.ps1",
|
||||
|
||||
Reference in New Issue
Block a user