.
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Giles Bradshaw 2020-04-26 09:29:18 +01:00
parent fb31dd290b
commit c0f1cb7a44
1 changed files with 11 additions and 2 deletions

View File

@ -8,10 +8,19 @@ def environment(env):
) )
def map(fn, l): def map(fn, l):
return [fn(x) for x in l] return [fn(x) for x in l]
def secretToEnvironment(secret):
return secret.replace("-", "_").upper()
def echo(secret): def echo(secret):
return "echo {secret}=${environment} >> env-stack".format(secret = secret, environment = secret.replace("-", "_").upper()) return [
"echo {secret}=${environment} >> env-stack".format(
secret = secret,
environment = secret.replace("-", "_").upper()
)
]
def export(secret): def export(secret):
return "export {toCaps}=${toCaps}".format(toCaps = secret.replace("-", "_").upper()) return "export {toCaps}=${toCaps}".format(
toCaps = secretToEnvironment(secret),
)
def printSecrets(env): def printSecrets(env):
return { return {