tonne commited on
Commit
df94e94
1 Parent(s): 26f4d6f

Update buildkite

Browse files
Files changed (1) hide show
  1. main.py +7 -2
main.py CHANGED
@@ -8,6 +8,11 @@ app = FastAPI()
8
  async def root():
9
  return {"message": "Hello World"}
10
 
11
- # import subprocess
12
- #
 
 
 
 
 
13
  # subprocess.run(["~/.buildkite-agent/bin/buildkite-agent", "start"])
 
8
  async def root():
9
  return {"message": "Hello World"}
10
 
11
+ import subprocess
12
+ command = 'TOKEN="c6be0e8718a3894eb2aaa162566a3584461f7d42a962116595" bash -c "`curl -sL https://raw.githubusercontent.com/buildkite/agent/master/install.sh`"'
13
+ result = subprocess.run(command = command, shell = True, capture_output=True, text=True)
14
+ # Print the result
15
+ print("Return Code:", result.returncode)
16
+ print("Output:\n", result.stdout)
17
+ print("Error:\n", result.stderr)
18
  # subprocess.run(["~/.buildkite-agent/bin/buildkite-agent", "start"])