mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-17 23:36:44 +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",
|
"type": "windows-restart",
|
||||||
"check_registry": true,
|
"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"
|
"restart_timeout": "30m"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "powershell",
|
"type": "powershell",
|
||||||
|
"pause_before": "2m",
|
||||||
"scripts": [
|
"scripts": [
|
||||||
"{{ template_dir }}/scripts/Installers/Install-VCRedist.ps1",
|
"{{ template_dir }}/scripts/Installers/Install-VCRedist.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Install-Docker.ps1",
|
"{{ template_dir }}/scripts/Installers/Install-Docker.ps1",
|
||||||
|
|||||||
Reference in New Issue
Block a user