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

This commit is contained in:
Giles Bradshaw 2020-07-28 17:45:30 +01:00
parent 649f6bac47
commit 03665f3a6a
1 changed files with 17 additions and 12 deletions

View File

@ -187,19 +187,24 @@ local images = {
),
util.compose(
std.map(
util.compose([
function(s) util.envSet(s),
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 {