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

This commit is contained in:
Giles Bradshaw 2020-07-28 17:51:50 +01:00
parent f66460a092
commit 09cdaa61db
1 changed files with 6 additions and 0 deletions

View File

@ -118,6 +118,11 @@ local images = {
port: util.fromSecret("ssh-port"),
username: util.fromSecret("ssh-user"),
password: util.fromSecret("ssh-password"),
envs: [
'drone_tag',
'drone_commit',
'drone_build_number',
],
script: [],
},
},
@ -194,6 +199,7 @@ local images = {
function(s) function(step) step {
settings +: {
script +: [
"export D=$${DRONE_COMMIT}",
"export %(env)s='${%(env)s}'" % {
env: util.environment(s),
},