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

This commit is contained in:
Giles Bradshaw 2020-07-28 18:01:17 +01:00
parent 1692c835e2
commit 82eeeba210
1 changed files with 6 additions and 1 deletions

View File

@ -113,12 +113,16 @@ local images = {
}, },
ssh: { ssh: {
image: 'appleboy/drone-ssh', image: 'appleboy/drone-ssh',
environment: {
OOO: 'ahahahahaha',
},
settings: { settings: {
host: util.fromSecret("ssh-host"), host: util.fromSecret("ssh-host"),
port: util.fromSecret("ssh-port"), port: util.fromSecret("ssh-port"),
username: util.fromSecret("ssh-user"), username: util.fromSecret("ssh-user"),
password: util.fromSecret("ssh-password"), password: util.fromSecret("ssh-password"),
envs: [ envs: [
'ooo',
'drone_tag', 'drone_tag',
'drone_commit', 'drone_commit',
'drone_build_number', 'drone_build_number',
@ -200,7 +204,8 @@ local images = {
settings +: { settings +: {
script +: [ script +: [
"export D=${DRONE_COMMIT}", "export D=${DRONE_COMMIT}",
"export O=$${O}", "export O=${O}",
"export OOO=${OOO}",
"export %(env)s='${%(env)s}'" % { "export %(env)s='${%(env)s}'" % {
env: util.environment(s), env: util.environment(s),
}, },