.
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
This commit is contained in:
parent
846a46076d
commit
33559d4b84
|
@ -11,12 +11,12 @@ def map(fn, l):
|
|||
def secretToEnvironment(secret):
|
||||
return secret.replace("-", "_").upper()
|
||||
def echo(secret):
|
||||
return 'echo "export {environment}=${environment}" >> $$filename$$ # {secret}'.format(
|
||||
return 'echo "export {environment}=${environment}" >> ***filename*** # {secret}'.format(
|
||||
secret = secret,
|
||||
environment = secret.replace("-", "_").upper(),
|
||||
)
|
||||
def echoSecret(secret):
|
||||
return 'echo 'export {environment}=???' >> $$filename$$ # {secret}'.format(
|
||||
return 'echo "export {environment}=???" >> ***filename*** # {secret}'.format(
|
||||
secret = secret,
|
||||
environment = secret.replace("-", "_").upper()
|
||||
)
|
||||
|
@ -37,7 +37,7 @@ def printSecrets(filename, env, secretEnv):
|
|||
"port": fromSecret("ssh-port"),
|
||||
"username": fromSecret("ssh-user"),
|
||||
"password": fromSecret("ssh-password"),
|
||||
"script": [x.replace("$$filename$$", filename) for x in [
|
||||
"script": [x.replace("***filename***", filename) for x in [
|
||||
"rm -f env-stack",
|
||||
] + map(echo, env)
|
||||
+ map(echoSecret, secretEnv)]
|
||||
|
|
Reference in New Issue