drone/drone-starlark/repos/echo-secret.star

8 lines
265 B
Plaintext
Raw Permalink Normal View History

2020-05-10 16:16:11 +00:00
load("@this//:secret-to-environment.star", "secretToEnvironment")
def echoSecret(secret):
return 'echo "export {environment}=???? ${environment}" >> ***filename*** # {secret}'.format(
secret = secret,
environment = secretToEnvironment(secret),
)