updated buildkite windows
This commit is contained in:
parent
ae519e1887
commit
f2170f4955
2 changed files with 20 additions and 18 deletions
|
@ -7,12 +7,8 @@ FROM gcr.io/llvm-premerge-checks/agent-windows
|
||||||
# https://buildkite.com/docs/agent/v3/windows
|
# https://buildkite.com/docs/agent/v3/windows
|
||||||
# Supply your agent token via the arguement "-token <mytoken" when building the image
|
# Supply your agent token via the arguement "-token <mytoken" when building the image
|
||||||
ARG token
|
ARG token
|
||||||
ENV buildkiteAgentToken="${token}"
|
|
||||||
ENV BUILDKITE_BUILD_PATH=C:\ws\bk
|
ENV BUILDKITE_BUILD_PATH=C:\ws\bk
|
||||||
ENV BUILDKITE_AGENT_NAME=win-vs17
|
ENV BUILDKITE_AGENT_NAME=win-vs17
|
||||||
|
|
||||||
RUN powershell -NoProfile -InputFormat None -Command `
|
COPY start_agent.ps1 C:\scripts\
|
||||||
Set-ExecutionPolicy Bypass -Scope Process -Force ; `
|
CMD "powershell C:\scripts\start_agent.ps1"
|
||||||
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
|
|
6
containers/agent-windows-buildkite/start_agent.ps1
Normal file
6
containers/agent-windows-buildkite/start_agent.ps1
Normal 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"
|
Loading…
Add table
Reference in a new issue