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(
std.map(
util.compose(
std.map(
function(s) util.envSet(s),
publicSecrets
) +
std.map(
function(s) function(step) step {
settings +: {
script +: [
"export %(env)s='$${%(env)s}'" % {
env: util.environment(s),
},
],
},
util.compose(
std.map(
function(s) util.envSet(s),
publicSecrets
) +
std.map(
function(s) function(step) step {
settings +: {
script +: [
"export %(env)s='$${%(env)s}'" % {
env: util.environment(s),
},
],
},
publicSecrets
)
),
},
publicSecrets
)
)
)(
(
images.ssh {
name: 'deploy portainer',
settings +: {