We only need to run this once per deploy, I think
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-04-25 13:48:03 -05:00
parent e12881d729
commit aa0825e47a
+1 -1
View File
@@ -42,7 +42,6 @@ def deploy_file(source_file, target, auth):
if is_target_http(target): if is_target_http(target):
run(["curl", "--user", auth, target, "--upload-file", source_file], check=True) run(["curl", "--user", auth, target, "--upload-file", source_file], check=True)
else: else:
make_parent_dirs(target, auth)
run(["scp", "-i", auth, "-o", "StrictHostKeyChecking=no", "-o", "PasswordAuthentication=no", "-r", source_file, target], check=True) run(["scp", "-i", auth, "-o", "StrictHostKeyChecking=no", "-o", "PasswordAuthentication=no", "-r", source_file, target], check=True)
temp_file_name = None temp_file_name = None
@@ -60,6 +59,7 @@ try:
else: else:
auth = os.environ['PLUGIN_AUTHENTICATION'] auth = os.environ['PLUGIN_AUTHENTICATION']
make_parent_dirs(TARGET, auth)
deploy(SOURCE, TARGET, auth) deploy(SOURCE, TARGET, auth)
finally: finally:
if temp_file_name is not None: if temp_file_name is not None: