feat: added drone secrets

This commit is contained in:
Giles Bradshaw 2020-08-27 21:11:22 +01:00
parent 8286a17f17
commit d38db6f40f
2 changed files with 4 additions and 3 deletions

View File

@ -9,7 +9,8 @@ function(
root, root,
buildSecrets, buildSecrets,
publicSecrets, publicSecrets,
secretSecrets secretSecrets,
droneSecrets
) )
{ {
kind: 'pipeline', kind: 'pipeline',
@ -70,7 +71,7 @@ function(
'%(root)s%(name)s' % { root: root, name: name } '%(root)s%(name)s' % { root: root, name: name }
), ),
images.wait(15), images.wait(15),
build(buildSecrets), build(droneSecrets),
compose( compose(
std.map( std.map(
function(secret) environment.envSet(secret), function(secret) environment.envSet(secret),
@ -86,7 +87,7 @@ function(
'export %(env)s=$${%(env)s}' % { 'export %(env)s=$${%(env)s}' % {
env: environment.environment(secret) env: environment.environment(secret)
}, },
secretSecrets + publicSecrets + buildSecrets, secretSecrets + publicSecrets + buildSecrets + droneSecrets,
) + ) +
[ [
'set -e', 'set -e',

Binary file not shown.