From 09cdaa61dbb74bad8cf2427f2b979b5f1bcc2d29 Mon Sep 17 00:00:00 2001 From: Giles Bradshaw Date: Tue, 28 Jul 2020 17:51:50 +0100 Subject: [PATCH] composed envsets --- .drone-home.jsonnet | 6 ++++++ 1 file changed, 6 insertions(+) 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), },