mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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:
parent
38719d0aef
commit
edac99f441
2 changed files with 3 additions and 1 deletions
|
@ -6,6 +6,8 @@ FROM 'mcr.microsoft.com/windows/servercore:ltsc2019'
|
||||||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]
|
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]
|
||||||
ENV ErrorActionPreference='Stop'
|
ENV ErrorActionPreference='Stop'
|
||||||
|
|
||||||
|
ARG DEFAULT_BRANCH="master"
|
||||||
|
|
||||||
COPY install_choco.ps1 C:\
|
COPY install_choco.ps1 C:\
|
||||||
RUN C:\install_choco.ps1
|
RUN C:\install_choco.ps1
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ git config --global user.name "Gstbuild Runner"
|
||||||
(New-Object System.Net.WebClient).DownloadString("https://github.com") >$null
|
(New-Object System.Net.WebClient).DownloadString("https://github.com") >$null
|
||||||
|
|
||||||
# Download gst-build and all its subprojects
|
# 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
|
# download the subprojects to try and cache them
|
||||||
meson subprojects download --sourcedir C:\gst-build
|
meson subprojects download --sourcedir C:\gst-build
|
||||||
|
|
Loading…
Reference in a new issue