From e7ef042400cf7c2a99dabf815c913179483fdcff Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Fri, 1 Oct 2021 12:11:04 +0300 Subject: [PATCH] ci: Rebuild windows image Get updates and newer ca-certificates in. Also update the way we install chocolatey Part-of: --- .gitlab-ci.yml | 2 +- ci/docker/windows/install_choco.ps1 | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5f8fe93..69ab3e9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,7 +23,7 @@ variables: ### FEDORA_TAG: '2021-06-30.0' INDENT_TAG: '2020-10-22.0' - WINDOWS_TAG: "2021-09-09.0" + WINDOWS_TAG: "2021-10-01.0" GST_UPSTREAM_REPO: 'gstreamer/gst-ci' diff --git a/ci/docker/windows/install_choco.ps1 b/ci/docker/windows/install_choco.ps1 index b19eb7b..8fc6897 100644 --- a/ci/docker/windows/install_choco.ps1 +++ b/ci/docker/windows/install_choco.ps1 @@ -1,6 +1,9 @@ Get-Date Write-Host "Installing Chocolatey" -Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) +Set-ExecutionPolicy Bypass -Scope Process -Force; +# Force TLS 1.2 +[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; +iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) Import-Module "$env:ProgramData\chocolatey\helpers\chocolateyProfile.psm1" Update-SessionEnvironment -- 2.7.4