Temporary use different ftp provider
This commit is contained in:
parent
57d5c3ea21
commit
0dc665c12a
|
@ -3,6 +3,7 @@ FROM alpine:3.11
|
|||
COPY LICENSE README.md /
|
||||
|
||||
RUN apk --no-cache add lftp
|
||||
RUN apk --no-cache add ncftpput
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
#!/bin/sh -l
|
||||
|
||||
lftp $INPUT_HOST -u $INPUT_USER,$INPUT_PASSWORD -e "set ftp:ssl-force $INPUT_FORCESSL; set ssl:verify-certificate false; mirror --reverse --continue --dereference --verbose=3 -P -x ^\.git/$ $INPUT_LOCALDIR $INPUT_REMOTEDIR; quit"
|
||||
|
||||
|
||||
# lftp $INPUT_HOST -u $INPUT_USER,$INPUT_PASSWORD -e "set ftp:ssl-force $INPUT_FORCESSL; set ssl:verify-certificate false; mirror --reverse --continue --dereference --verbose=3 -P -x ^\.git/$ $INPUT_LOCALDIR $INPUT_REMOTEDIR; quit"
|
||||
|
||||
ncftpput -R -z -u "$INPUT_USER" -p "$INPUT_PASSWORD" "$INPUT_HOST" "$INPUT_REMOTEDIR" "$INPUT_LOCALDIR"
|
||||
|
|
Loading…
Reference in New Issue