mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
generic-worker on macOS: configure livelog
This commit is contained in:
parent
a5089885ac
commit
ff1e2c2394
4 changed files with 32 additions and 12 deletions
|
@ -5,6 +5,7 @@
|
|||
import os
|
||||
import sys
|
||||
import json
|
||||
import base64
|
||||
import subprocess
|
||||
|
||||
|
||||
|
@ -20,6 +21,18 @@ def check():
|
|||
"eval `taskcluster signin`\n")
|
||||
|
||||
|
||||
def livelog():
|
||||
win2016 = api("awsProvisioner", "workerType", "servo-win2016")
|
||||
files = win2016["secrets"]["files"]
|
||||
assert all(f["encoding"] == "base64" for f in files)
|
||||
files = {f.get("description"): f["content"] for f in files}
|
||||
return {
|
||||
"livelog_cert": base64.b64decode(files["SSL certificate for livelog"]),
|
||||
"livelog_key": base64.b64decode(files["SSL key for livelog"]),
|
||||
"livelog_secret": win2016["secrets"]["generic-worker"]["config"]["livelogSecret"],
|
||||
}
|
||||
|
||||
|
||||
def packet_auth_token():
|
||||
return secret("project/servo/packet.net-api-key")["key"]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue