fix: use HEREDOC for lftp script to handle special chars in password
All checks were successful
Deploy / Build and Deploy to Production (push) Successful in 27s
All checks were successful
Deploy / Build and Deploy to Production (push) Successful in 27s
This commit is contained in:
parent
052c6958f3
commit
6c421ce628
1 changed files with 11 additions and 17 deletions
|
|
@ -46,20 +46,14 @@ jobs:
|
|||
run: |
|
||||
apt-get install -y -qq lftp
|
||||
cd dist
|
||||
lftp -c "
|
||||
set ftp:ssl-allow no;
|
||||
open -u $USERNAME,$PASSWORD $PRODUCTION_HOST;
|
||||
mirror --reverse --verbose --ignore-time --parallel=10 \
|
||||
-x 'local/' \
|
||||
assets assets;
|
||||
mirror --reverse --verbose --ignore-time --parallel=10 \
|
||||
-x 'accounts/' \
|
||||
-x 'cache/' \
|
||||
-x 'sessions/' \
|
||||
site site;
|
||||
mirror --reverse --verbose --ignore-time --parallel=10 \
|
||||
kirby kirby;
|
||||
mirror --reverse --verbose --ignore-time --parallel=10 \
|
||||
vendor vendor;
|
||||
put index.php -o index.php;
|
||||
quit"
|
||||
cat > /tmp/lftp-script.txt <<SCRIPT
|
||||
set ftp:ssl-allow no
|
||||
open -u $USERNAME,$PASSWORD $PRODUCTION_HOST
|
||||
mirror --reverse --verbose --ignore-time --parallel=10 -x local/ assets assets
|
||||
mirror --reverse --verbose --ignore-time --parallel=10 -x accounts/ -x cache/ -x sessions/ site site
|
||||
mirror --reverse --verbose --ignore-time --parallel=10 kirby kirby
|
||||
mirror --reverse --verbose --ignore-time --parallel=10 vendor vendor
|
||||
put index.php -o index.php
|
||||
quit
|
||||
SCRIPT
|
||||
lftp -f /tmp/lftp-script.txt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue