Giles Bradshaw 1 year ago
parent
commit
42dfb66a3f
2 changed files with 4 additions and 0 deletions
  1. +2
    -0
      drone-starlark/repos/map.star
  2. +2
    -0
      drone-starlark/repos/print-secrets.star

+ 2
- 0
drone-starlark/repos/map.star View File

@@ -0,0 +1,2 @@
def map(fn, l):
return [fn(x) for x in l]

+ 2
- 0
drone-starlark/repos/print-secrets.star View File

@@ -1,3 +1,5 @@
load("@this//:map.star", "map")

def echo(secret):
return 'echo "export {environment}=${environment}" >> ***filename*** # {secret}'.format(
secret = secret,