Similar to !232
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/285>
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]
ENV ErrorActionPreference='Stop'
+ARG DEFAULT_BRANCH="master"
+
COPY install_choco.ps1 C:\
RUN C:\install_choco.ps1
(New-Object System.Net.WebClient).DownloadString("https://github.com") >$null
# Download gst-build and all its subprojects
-git clone https://gitlab.freedesktop.org/gstreamer/gst-build.git C:\gst-build
+git clone -b $env:DEFAULT_BRANCH https://gitlab.freedesktop.org/gstreamer/gst-build.git C:\gst-build
# download the subprojects to try and cache them
meson subprojects download --sourcedir C:\gst-build