windows/docker: allow to specify the branch to pull for gst-build
authorJordan Petridis <jordan@centricular.com>
Thu, 23 Apr 2020 15:49:07 +0000 (18:49 +0300)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 27 Apr 2020 08:03:54 +0000 (08:03 +0000)
Similar to !232

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/285>

docker/windows/Dockerfile
docker/windows/prepare_gst_env.ps1

index 7c86152..cb6c89f 100644 (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
 
index a930c5d..61b30e1 100644 (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