Commit b8fa6db8 authored by Jordan Petridis's avatar Jordan Petridis 🌱 Committed by GStreamer Merge Bot

docker/windows: add script to build the image with the correct branch and tag

also move the default_branch arg later in the dockerfile to
avoid invalidating previous layers

Part-of: <gstreamer/gst-ci!287>
parent 6576f2f7
Pipeline #145205 failed with stages
in 25 minutes and 18 seconds
......@@ -6,13 +6,13 @@ 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
COPY install_toolchain.ps1 C:\
RUN C:\install_toolchain.ps1
ARG DEFAULT_BRANCH="master"
COPY prepare_gst_env.ps1 C:\
RUN C:\prepare_gst_env.ps1
$env:DEFAULT_BRANCH='master'
$env:tag ="registry.freedesktop.org/gstreamer/gst-ci/amd64/windows:v10-$env:DEFAULT_BRANCH"
echo "Building $env:tag"
docker build --build-arg DEFAULT_BRANCH=$env:DEFAULT_BRANCH -f Dockerfile -t $env:tag .
# docker push $tag
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment