ci: Rebuild windows image
authorJordan Petridis <jordan@centricular.com>
Fri, 1 Oct 2021 09:11:04 +0000 (12:11 +0300)
committerJordan Petridis <jordan@centricular.com>
Fri, 1 Oct 2021 11:53:53 +0000 (14:53 +0300)
Get updates and newer ca-certificates in.

Also update the way we install chocolatey

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1002>

.gitlab-ci.yml
ci/docker/windows/install_choco.ps1

index 5f8fe93..69ab3e9 100644 (file)
@@ -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'
 
index b19eb7b..8fc6897 100644 (file)
@@ -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