add logging to scp
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Captain Beyond
2024-11-16 04:03:29 -06:00
parent f471780416
commit 1d3da35b3c

2
run
View File

@@ -10,7 +10,7 @@ TARGET = os.environ['PLUGIN_TARGET']
def deploy(source, target, keyfile): def deploy(source, target, keyfile):
for source_file in glob.glob(source): for source_file in glob.glob(source):
run(["scp", "-i", keyfile, "-o", "StrictHostKeyChecking=no", "-r", source_file, target]) run(["scp", "-v", "-i", keyfile, "-o", "StrictHostKeyChecking=no", "-r", source_file, target])
with tempfile.NamedTemporaryFile() as deploy_key: with tempfile.NamedTemporaryFile() as deploy_key:
deploy_key.write(os.environ['PLUGIN_KEY'].encode()) deploy_key.write(os.environ['PLUGIN_KEY'].encode())