.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
88133b0e82
commit
ecbc7195e3
|
@ -0,0 +1,5 @@
|
||||||
|
load("@this//:from-secret.star", "fromSecret")
|
||||||
|
def environment(env):
|
||||||
|
return dict(
|
||||||
|
[(x.replace("-", "_").upper(), fromSecret(x)) for x in env]
|
||||||
|
)
|
|
@ -1,10 +1,7 @@
|
||||||
load("@this//:map.star", "map")
|
load("@this//:map.star", "map")
|
||||||
load("@this//:from-secret.star", "fromSecret")
|
load("@this//:from-secret.star", "fromSecret")
|
||||||
def environment(env):
|
load("@this//:environment", "environment")
|
||||||
return dict(
|
|
||||||
[(x.replace("-", "_").upper(), fromSecret(x)) for x in env]
|
|
||||||
)
|
|
||||||
|
|
||||||
def secretToEnvironment(secret):
|
def secretToEnvironment(secret):
|
||||||
return secret.replace("-", "_").upper()
|
return secret.replace("-", "_").upper()
|
||||||
|
|
||||||
|
|
Reference in New Issue