composed envsets
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Giles Bradshaw 2020-07-28 17:46:34 +01:00
parent 03665f3a6a
commit 917d518299
1 changed files with 17 additions and 20 deletions

View File

@ -185,28 +185,25 @@ local images = {
}, },
}, },
), ),
util.compose( util.compose(
std.map( std.map(
util.compose( function(s) util.envSet(s),
std.map( publicSecrets
function(s) util.envSet(s), ) +
publicSecrets std.map(
) + function(s) function(step) step {
std.map( settings +: {
function(s) function(step) step { script +: [
settings +: { "export %(env)s='$${%(env)s}'" % {
script +: [ env: util.environment(s),
"export %(env)s='$${%(env)s}'" % { },
env: util.environment(s), ],
},
],
},
}, },
publicSecrets },
) publicSecrets
), )
) )
)( (
images.ssh { images.ssh {
name: 'deploy portainer', name: 'deploy portainer',
settings +: { settings +: {