add sftp port as configuration

This commit is contained in:
Sebastian Hugentobler 2023-12-31 16:26:02 +01:00
parent fcca67b1fb
commit d3bb57111c
Signed by: shu
GPG Key ID: BB32CF3CA052C2F0
2 changed files with 5 additions and 1 deletions

View File

@ -17,6 +17,10 @@ inputs:
sftp-host: sftp-host:
description: "Sftp host" description: "Sftp host"
required: true required: true
sftp-port:
description: "Sftp port"
default: "22"
required: true
runs: runs:
using: "docker" using: "docker"
image: "Containerfile" image: "Containerfile"

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
set -e set -e
lftp -e "set sftp:auto-confirm yes; open -u $INPUT_SFTP_USER,$INPUT_SFTP_PW $SFTP_INPUT_HOST; mirror -v --no-perms --delete --reverse $INPUT_SOURCE $INPUT_DESTINATION; quit" lftp -e "set sftp:auto-confirm yes; open -p $INPUT_SFTP_PORT -u $INPUT_SFTP_USER,$INPUT_SFTP_PW $SFTP_INPUT_HOST; mirror -v --no-perms --delete --reverse $INPUT_SOURCE $INPUT_DESTINATION; quit"