.
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//:map.star", "map")
|
||||||
load("@this//:from-secret.star", "fromSecret")
|
load("@this//:from-secret.star", "fromSecret")
|
||||||
load("@this//:environment.star", "environment")
|
load("@this//:environment.star", "environment")
|
||||||
|
load("@this//:secretTonvironment.star", "secretToEnvironment")
|
||||||
def secretToEnvironment(secret):
|
|
||||||
return secret.replace("-", "_").upper()
|
|
||||||
|
|
||||||
def echo(secret):
|
def echo(secret):
|
||||||
return 'echo "export {environment}=${environment}" >> ***filename*** # {secret}'.format(
|
return 'echo "export {environment}=${environment}" >> ***filename*** # {secret}'.format(
|
||||||
secret = secret,
|
secret = secret,
|
||||||
environment = secret.replace("-", "_").upper(),
|
environment = secretToEnvironment(secret), #secret.replace("-", "_").upper(),
|
||||||
)
|
)
|
||||||
def echoSecret(secret):
|
def echoSecret(secret):
|
||||||
return 'echo "export {environment}=???" >> ***filename*** # {secret}'.format(
|
return 'echo "export {environment}=???" >> ***filename*** # {secret}'.format(
|
||||||
secret = secret,
|
secret = secret,
|
||||||
environment = secret.replace("-", "_").upper()
|
environment = secretToEnvironment(secret), # .replace("-", "_").upper()
|
||||||
)
|
)
|
||||||
|
|
||||||
def export(secret):
|
def export(secret):
|
||||||
return "export {toCaps}=${toCaps}".format(
|
return "export {toCaps}=${toCaps}".format(
|
||||||
toCaps = secret.replace("-", "_").upper(),
|
toCaps = secretToEnvironment(secret), #secret.replace("-", "_").upper(),
|
||||||
)
|
)
|
||||||
def printSecrets(filename, env, secretEnv):
|
def printSecrets(filename, env, secretEnv):
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
def secretToEnvironment(secret):
|
||||||
|
return secret.replace("-", "_").upper()
|
Reference in New Issue