diff --git a/.drone-home.jsonnet b/.drone-home.jsonnet index 2f3aa2e..119fb11 100644 --- a/.drone-home.jsonnet +++ b/.drone-home.jsonnet @@ -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), },