.
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
This commit is contained in:
parent
908e76ca43
commit
c2291a8485
|
@ -1,24 +1,22 @@
|
|||
load("@this//:map.star", "map")
|
||||
load("@this//:from-secret.star", "fromSecret")
|
||||
load("@this//:environment.star", "environment")
|
||||
|
||||
def secretToEnvironment(secret):
|
||||
return secret.replace("-", "_").upper()
|
||||
load("@this//:secretTonvironment.star", "secretToEnvironment")
|
||||
|
||||
def echo(secret):
|
||||
return 'echo "export {environment}=${environment}" >> ***filename*** # {secret}'.format(
|
||||
secret = secret,
|
||||
environment = secret.replace("-", "_").upper(),
|
||||
environment = secretToEnvironment(secret), #secret.replace("-", "_").upper(),
|
||||
)
|
||||
def echoSecret(secret):
|
||||
return 'echo "export {environment}=???" >> ***filename*** # {secret}'.format(
|
||||
secret = secret,
|
||||
environment = secret.replace("-", "_").upper()
|
||||
environment = secretToEnvironment(secret), # .replace("-", "_").upper()
|
||||
)
|
||||
|
||||
def export(secret):
|
||||
return "export {toCaps}=${toCaps}".format(
|
||||
toCaps = secret.replace("-", "_").upper(),
|
||||
toCaps = secretToEnvironment(secret), #secret.replace("-", "_").upper(),
|
||||
)
|
||||
def printSecrets(filename, env, secretEnv):
|
||||
return {
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
def secretToEnvironment(secret):
|
||||
return secret.replace("-", "_").upper()
|
Reference in New Issue