CI : try to fix
This commit is contained in:
parent
d0bcc2ae7d
commit
619b86414c
1 changed files with 6 additions and 7 deletions
|
|
@ -30,12 +30,11 @@ build and deploy:
|
||||||
- main
|
- main
|
||||||
image: node:latest
|
image: node:latest
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get update -qq && apt-get install -y -qq lftp
|
- apt-get update -qq && apt-get install -y sshpass
|
||||||
script:
|
script:
|
||||||
- echo "test" > test.txt
|
- echo "test" > test.txt
|
||||||
- lftp -c "
|
- sshpass -p "$PASSWORD" sftp -o StrictHostKeyChecking=no $USERNAME@$HOST <<EOF
|
||||||
set sftp:auto-confirm yes;
|
cd $PROD_PATH
|
||||||
open -u $USERNAME,$PASSWORD sftp://$HOST;
|
put test.txt
|
||||||
cd $PROD_PATH;
|
bye
|
||||||
put test.txt;
|
EOF
|
||||||
quit"
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue