From 42dfb66a3f70c67f6a2efe13799a2f4aec9895df Mon Sep 17 00:00:00 2001 From: Giles Bradshaw Date: Sun, 26 Apr 2020 12:56:39 +0100 Subject: [PATCH] . --- drone-starlark/repos/map.star | 2 ++ drone-starlark/repos/print-secrets.star | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 drone-starlark/repos/map.star diff --git a/drone-starlark/repos/map.star b/drone-starlark/repos/map.star new file mode 100644 index 0000000..d7828a0 --- /dev/null +++ b/drone-starlark/repos/map.star @@ -0,0 +1,2 @@ +def map(fn, l): + return [fn(x) for x in l] diff --git a/drone-starlark/repos/print-secrets.star b/drone-starlark/repos/print-secrets.star index 75ef634..ddd076b 100644 --- a/drone-starlark/repos/print-secrets.star +++ b/drone-starlark/repos/print-secrets.star @@ -1,3 +1,5 @@ +load("@this//:map.star", "map") + def echo(secret): return 'echo "export {environment}=${environment}" >> ***filename*** # {secret}'.format( secret = secret,