docker/windows: move the git user config outside the script
authorJordan Petridis <jordan@centricular.com>
Tue, 1 Sep 2020 18:30:29 +0000 (21:30 +0300)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 14 Sep 2020 17:36:54 +0000 (17:36 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/333>

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

index 899fcfa..882082a 100644 (file)
@@ -9,6 +9,8 @@ ENV ErrorActionPreference='Stop'
 COPY install_choco.ps1 C:\
 RUN C:\install_choco.ps1
 
 COPY install_choco.ps1 C:\
 RUN C:\install_choco.ps1
 
+RUN 'git config --global user.email "cirunner@gstreamer.freedesktop.org"; git config --global user.name "GStreamer CI system"'
+
 COPY install_toolchain.ps1 C:\
 RUN C:\install_toolchain.ps1
 
 COPY install_toolchain.ps1 C:\
 RUN C:\install_toolchain.ps1
 
index 61b30e1..f5316e9 100644 (file)
@@ -1,8 +1,5 @@
 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;
 
 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;
 
-git config --global user.email "gst-build@gstreamer.net"
-git config --global user.name "Gstbuild Runner"
-
 # FIXME: Python fails to validate github.com SSL certificate, unless we first
 # run a dummy download to force refreshing Windows' CA database.
 # See: https://bugs.python.org/issue36137
 # FIXME: Python fails to validate github.com SSL certificate, unless we first
 # run a dummy download to force refreshing Windows' CA database.
 # See: https://bugs.python.org/issue36137