From 031dc15083d0a4a210943a4ff0d7924442a8bc84 Mon Sep 17 00:00:00 2001 From: Giles Bradshaw Date: Tue, 28 Jul 2020 17:30:59 +0100 Subject: [PATCH] . --- .drone-home.jsonnet | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.drone-home.jsonnet b/.drone-home.jsonnet index ed50bc9..9440329 100644 --- a/.drone-home.jsonnet +++ b/.drone-home.jsonnet @@ -68,17 +68,20 @@ local util = { ], }, }, - printEnv(file, env): function(step) util.envSet(env)(step) { - settings +: { - script +: [ - 'echo "export %(environment)s=\'$${%(environment)s}\'" >> %(file)s # "%(secret)s"' % { - environment: util.environment(env), - file: file, - secret: util.secret(env), - }, - ], + printEnv(file, env): function(step) util.compose([ + util.envSet(env), + function(step) step { + settings +: { + script +: [ + 'echo "export %(environment)s=\'$${%(environment)s}\'" >> %(file)s # "%(secret)s"' % { + environment: util.environment(env), + file: file, + secret: util.secret(env), + }, + ], + }, }, - }, + ])(step), }; local images = { docker: {