.
continuous-integration/drone/push Build was killed Details

This commit is contained in:
Giles Bradshaw 2020-04-26 11:01:23 +01:00
parent a8117381b2
commit 181ce05429
1 changed files with 2 additions and 3 deletions

View File

@ -14,7 +14,6 @@ def echo(secret):
return "export {environment}='${environment}' >> $$filename$$ # {secret}".format( return "export {environment}='${environment}' >> $$filename$$ # {secret}".format(
secret = secret, secret = secret,
environment = secret.replace("-", "_").upper(), environment = secret.replace("-", "_").upper(),
filename = filename,
) )
def echoSecret(secret): def echoSecret(secret):
return "export {environment}=??? >> $$filename$$ # {secret}".format( return "export {environment}=??? >> $$filename$$ # {secret}".format(
@ -40,8 +39,8 @@ def printSecrets(filename, env, secretEnv):
"password": fromSecret("ssh-password"), "password": fromSecret("ssh-password"),
"script": [x.replace("$$filename$$", filename) for x in [ "script": [x.replace("$$filename$$", filename) for x in [
"rm -f env-stack", "rm -f env-stack",
] + map(echofilename, env) ] + map(echo, env)
+ mapSecret(echoSecret, secretEnv)] + map(echoSecret, secretEnv)]
} }
} }
def wait(delay, name): def wait(delay, name):