1
0
Fork 0

updated buildkite windows

This commit is contained in:
Christian Kühnel 2020-01-17 11:52:31 +00:00
parent ae519e1887
commit f2170f4955
2 changed files with 20 additions and 18 deletions

View file

@ -1,18 +1,14 @@
# escape=`
# use windows server core image
FROM gcr.io/llvm-premerge-checks/agent-windows
# 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}"
ENV BUILDKITE_BUILD_PATH=C:\ws\bk
ENV BUILDKITE_AGENT_NAME=win-vs17
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'))
CMD "C:\buildkite-agent\bin\buildkite-agent.exe" start
# escape=`
# use windows server core image
FROM gcr.io/llvm-premerge-checks/agent-windows
# 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 BUILDKITE_BUILD_PATH=C:\ws\bk
ENV BUILDKITE_AGENT_NAME=win-vs17
COPY start_agent.ps1 C:\scripts\
CMD "powershell C:\scripts\start_agent.ps1"

View file

@ -0,0 +1,6 @@
$Env:buildkiteAgentToken = [IO.File]::ReadAllText("C:\credentials\buildkite-token.txt")
#Set-ExecutionPolicy Bypass -Scope Process -Force
iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/buildkite/agent/master/install.ps1'))
C:\buildkite-agent\bin\buildkite-agent.exe start --tags "os=windows"