.
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
fb31dd290b
commit
c0f1cb7a44
13
.drone.star
13
.drone.star
|
@ -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 {
|
||||||
|
|
Reference in New Issue