.
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
This commit is contained in:
parent
a8117381b2
commit
181ce05429
|
@ -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):
|
||||||
|
|
Reference in New Issue