windows/docker: allow to specify the branch to pull for gst-build

Similar to !232

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/285>
This commit is contained in:
Jordan Petridis 2020-04-23 18:49:07 +03:00 committed by GStreamer Merge Bot
parent 38719d0aef
commit edac99f441
2 changed files with 3 additions and 1 deletions

View file

@ -6,6 +6,8 @@ FROM 'mcr.microsoft.com/windows/servercore:ltsc2019'
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]
ENV ErrorActionPreference='Stop'
ARG DEFAULT_BRANCH="master"
COPY install_choco.ps1 C:\
RUN C:\install_choco.ps1

View file

@ -9,7 +9,7 @@ git config --global user.name "Gstbuild Runner"
(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