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