2019-11-26 17:10:30 +01:00
|
|
|
# escape=`
|
|
|
|
|
|
|
|
# use windows server core image
|
2019-11-26 17:40:45 +01:00
|
|
|
FROM gcr.io/llvm-premerge-checks/agent-windows
|
2019-11-26 17:10:30 +01:00
|
|
|
|
|
|
|
# install buildkite agent as described in the documentation
|
|
|
|
# https://buildkite.com/docs/agent/v3/windows
|
|
|
|
# Supply your agent token via the arguement "-token <mytoken" when building the image
|
|
|
|
ARG token
|
|
|
|
ENV buildkiteAgentToken="${token}"
|
2019-11-27 11:53:19 +01:00
|
|
|
ENV BUILDKITE_BUILD_PATH=C:\ws\bk
|
|
|
|
ENV BUILDKITE_AGENT_NAME=win-vs17
|
2019-11-26 17:10:30 +01:00
|
|
|
|
|
|
|
RUN powershell -NoProfile -InputFormat None -Command `
|
|
|
|
Set-ExecutionPolicy Bypass -Scope Process -Force ; `
|
|
|
|
iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/buildkite/agent/master/install.ps1'))
|
|
|
|
|
|
|
|
# support long file names and do not change line endings
|
|
|
|
RUN git config --system core.longpaths true & `
|
|
|
|
git config --global core.autocrlf false
|
|
|
|
|
|
|
|
CMD "C:\buildkite-agent\bin\buildkite-agent.exe" start
|