add sftp port as configuration
This commit is contained in:
parent
fcca67b1fb
commit
d3bb57111c
@ -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"
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user