From f08047be53abb8299cf036a39476e4fb154726c9 Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Sat, 25 May 2019 16:55:08 +0200 Subject: [PATCH] pass envs to ssh connection --- .drone.yml | 3 +-- main.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 24d2f23..7b7046f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,9 +20,8 @@ steps: - test target: /srv/web/test commands: - - echo $KEY - echo $HOST - - echo $test + - echo $TEST when: event: push branch: master \ No newline at end of file diff --git a/main.py b/main.py index 055b8dc..e4a78e6 100644 --- a/main.py +++ b/main.py @@ -113,7 +113,7 @@ def main(): sftp.close() for command in commands: - output = execute(ssh, command, target) + output = execute(ssh, command, target, envs) print(command) print(output)