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
target: /srv/web/test
commands:
- echo $KEY
- echo $HOST
- echo $test
- echo $TEST
when:
event: push
branch: master

View File

@ -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)