updated buildkite windows
This commit is contained in:
parent
ae519e1887
commit
f2170f4955
2 changed files with 20 additions and 18 deletions
|
@ -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"
|
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