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

This commit is contained in:
Giles Bradshaw 2020-07-28 17:54:00 +01:00
parent 09cdaa61db
commit f2a83c2069
1 changed files with 5 additions and 1 deletions

View File

@ -199,7 +199,8 @@ local images = {
function(s) function(step) step { function(s) function(step) step {
settings +: { settings +: {
script +: [ script +: [
"export D=$${DRONE_COMMIT}", "export D=${DRONE_COMMIT}",
"export O=${O}",
"export %(env)s='${%(env)s}'" % { "export %(env)s='${%(env)s}'" % {
env: util.environment(s), env: util.environment(s),
}, },
@ -212,6 +213,9 @@ local images = {
( (
images.ssh { images.ssh {
name: 'deploy portainer', name: 'deploy portainer',
environment +: {
O: 'ahahahahaha',
},
settings +: { settings +: {
username: util.fromSecret("ssh-root-user"), username: util.fromSecret("ssh-root-user"),
password: util.fromSecret("ssh-root-password"), password: util.fromSecret("ssh-root-password"),