diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 1a3d9c339b..fe1320631d 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -307,6 +307,22 @@ jobs: uses: actions/download-artifact@v1 with: name: minikube_binaries + - name: Start Docker Desktop + shell: powershell + run: | + docker ps 2>&1 | Out-Null + $docker_running = $? + if (!$docker_running) { + Write-Output "Starting Docker as an administrator" + Start-Process 'C:/Program Files/Docker/Docker/Docker Desktop.exe' -Verb runAs + } + while (!$docker_running) { + Start-Sleep 5 + docker ps 2>&1 | Out-Null + $docker_running = $? + } + Write-Output "Docker is running" + docker system prune -f -a - name: Info shell: powershell run: | @@ -424,6 +440,22 @@ jobs: uses: actions/download-artifact@v1 with: name: minikube_binaries + - name: Start Docker Desktop + shell: powershell + run: | + docker ps 2>&1 | Out-Null + $docker_running = $? + if (!$docker_running) { + Write-Output "Starting Docker as an administrator" + Start-Process 'C:/Program Files/Docker/Docker/Docker Desktop.exe' -Verb runAs + } + while (!$docker_running) { + Start-Sleep 5 + docker ps 2>&1 | Out-Null + $docker_running = $? + } + Write-Output "Docker is running" + docker system prune -f -a - name: Info continue-on-error: true shell: powershell diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 01f7463bb4..c8699b56dc 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -305,6 +305,22 @@ jobs: uses: actions/download-artifact@v1 with: name: minikube_binaries + - name: Start Docker Desktop + shell: powershell + run: | + docker ps 2>&1 | Out-Null + $docker_running = $? + if (!$docker_running) { + Write-Output "Starting Docker as an administrator" + Start-Process 'C:/Program Files/Docker/Docker/Docker Desktop.exe' -Verb runAs + } + while (!$docker_running) { + Start-Sleep 5 + docker ps 2>&1 | Out-Null + $docker_running = $? + } + Write-Output "Docker is running" + docker system prune -f -a - name: Info shell: powershell run: | @@ -422,6 +438,22 @@ jobs: uses: actions/download-artifact@v1 with: name: minikube_binaries + - name: Start Docker Desktop + shell: powershell + run: | + docker ps 2>&1 | Out-Null + $docker_running = $? + if (!$docker_running) { + Write-Output "Starting Docker as an administrator" + Start-Process 'C:/Program Files/Docker/Docker/Docker Desktop.exe' -Verb runAs + } + while (!$docker_running) { + Start-Sleep 5 + docker ps 2>&1 | Out-Null + $docker_running = $? + } + Write-Output "Docker is running" + docker system prune -f -a - name: Info continue-on-error: true shell: powershell