Compare commits
2 Commits
60813e44d9
...
cb21be71f0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cb21be71f0 | ||
|
|
5417565e34 |
@@ -118,12 +118,20 @@ jobs:
|
|||||||
: "${SFTP_USER:?SFTP_USER secret must be set}"
|
: "${SFTP_USER:?SFTP_USER secret must be set}"
|
||||||
: "${SFTP_HOST:?SFTP_HOST secret must be set}"
|
: "${SFTP_HOST:?SFTP_HOST secret must be set}"
|
||||||
: "${SFTP_PATH:?SFTP_PATH secret must be set}"
|
: "${SFTP_PATH:?SFTP_PATH secret must be set}"
|
||||||
|
# `-u USER,` (with trailing comma = empty password) tells lftp not
|
||||||
|
# to prompt for a password; auth happens via the key passed to ssh
|
||||||
|
# by sftp:connect-program. Heredoc body is unindented so lftp's
|
||||||
|
# parser doesn't mistake leading whitespace for a continuation.
|
||||||
|
# `debug 3` prints the ssh command lftp invokes — useful if this
|
||||||
|
# ever breaks again.
|
||||||
lftp <<LFTP
|
lftp <<LFTP
|
||||||
set cmd:fail-exit yes
|
debug 3
|
||||||
set sftp:connect-program 'ssh -a -x -i $HOME/.ssh/id_ed25519 -o StrictHostKeyChecking=yes -o UserKnownHostsFile=$HOME/.ssh/known_hosts'
|
set cmd:fail-exit yes
|
||||||
open sftp://$SFTP_USER@$SFTP_HOST
|
set net:max-retries 1
|
||||||
mirror --reverse --delete --verbose --parallel=4 dist/ $SFTP_PATH/
|
set sftp:connect-program 'ssh -a -x -i $HOME/.ssh/id_ed25519 -o StrictHostKeyChecking=yes -o UserKnownHostsFile=$HOME/.ssh/known_hosts'
|
||||||
bye
|
open -u $SFTP_USER, sftp://$SFTP_HOST
|
||||||
|
mirror --reverse --delete --verbose --parallel=4 dist/ $SFTP_PATH/
|
||||||
|
bye
|
||||||
LFTP
|
LFTP
|
||||||
|
|
||||||
- name: Post-deploy smoke test
|
- name: Post-deploy smoke test
|
||||||
|
|||||||
Reference in New Issue
Block a user