disable password authentication for ssh, since this is run non-interactively
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Captain Beyond
2024-11-16 04:47:36 -06:00
parent 8d70336129
commit 215360e29b

2
run
View File

@@ -11,7 +11,7 @@ TARGET = os.environ['PLUGIN_TARGET']
def deploy(source, target, keyfile):
for source_file in glob.glob(source):
print(f">> {source_file} -> {target}")
run(["scp", "-i", keyfile, "-o", "StrictHostKeyChecking=no", "-r", source_file, target])
run(["scp", "-i", keyfile, "-o", "StrictHostKeyChecking=no", "-o", "PasswordAuthentication=no", "-r", source_file, target], check=True)
temp_file_name = None
try: