ftp-action/entrypoint.sh

13 lines
366 B
Bash
Raw Normal View History

2019-09-04 22:29:00 +02:00
#!/bin/sh
2019-11-15 06:05:33 +01:00
set -eu
echo "Starting FTP Deploy"
echo "Using $INPUT_USER to connect to $INPUT_HOST"
echo "Mirroring from $INPUT_LOCALDIR to $INPUT_REMOTEDIR"
2019-09-04 22:29:00 +02:00
2019-11-15 05:54:10 +01:00
lftp $INPUT_HOST -u $INPUT_USER,$INPUT_PASSWORD -e "set ssl:verify-certificate false; mirror --reverse --continue --dereference -x ^\.git/$ $INPUT_LOCALDIR $INPUT_REMOTEDIR; quit"
2019-11-15 06:05:33 +01:00
echo "FTP Deploy Complete"