We only need to run this once per deploy, I think
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -42,7 +42,6 @@ def deploy_file(source_file, target, auth):
|
||||
if is_target_http(target):
|
||||
run(["curl", "--user", auth, target, "--upload-file", source_file], check=True)
|
||||
else:
|
||||
make_parent_dirs(target, auth)
|
||||
run(["scp", "-i", auth, "-o", "StrictHostKeyChecking=no", "-o", "PasswordAuthentication=no", "-r", source_file, target], check=True)
|
||||
|
||||
temp_file_name = None
|
||||
@@ -60,6 +59,7 @@ try:
|
||||
else:
|
||||
auth = os.environ['PLUGIN_AUTHENTICATION']
|
||||
|
||||
make_parent_dirs(TARGET, auth)
|
||||
deploy(SOURCE, TARGET, auth)
|
||||
finally:
|
||||
if temp_file_name is not None:
|
||||
|
||||
Reference in New Issue
Block a user