mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Always construct TC API URLs from $TASKCLUSTER_PROXY_URL or $TASKCLUSTER_ROOT_URL
This commit is contained in:
parent
2aca5c82e4
commit
08705345d6
5 changed files with 15 additions and 11 deletions
|
@ -238,7 +238,8 @@ def upload_docs():
|
|||
.with_scopes("secrets:get:project/servo/doc.servo.org")
|
||||
.with_env(PY="""if 1:
|
||||
import urllib, json
|
||||
url = "http://taskcluster/secrets/v1/secret/project/servo/doc.servo.org"
|
||||
root_url = os.environ["TASKCLUSTER_PROXY_URL"]
|
||||
url = root_url + "/api/secrets/v1/secret/project/servo/doc.servo.org"
|
||||
token = json.load(urllib.urlopen(url))["secret"]["token"]
|
||||
open("/root/.git-credentials", "w").write("https://git:%s@github.com/" % token)
|
||||
""")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue