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: {