pass envs to ssh connection

This commit is contained in:
cupcakearmy 2019-05-25 16:55:08 +02:00
parent 02a970da6b
commit f08047be53
2 changed files with 2 additions and 3 deletions

View File

@ -20,9 +20,8 @@ steps:
- test - test
target: /srv/web/test target: /srv/web/test
commands: commands:
- echo $KEY
- echo $HOST - echo $HOST
- echo $test - echo $TEST
when: when:
event: push event: push
branch: master branch: master

View File

@ -113,7 +113,7 @@ def main():
sftp.close() sftp.close()
for command in commands: for command in commands:
output = execute(ssh, command, target) output = execute(ssh, command, target, envs)
print(command) print(command)
print(output) print(output)