switch to scp
This commit is contained in:
parent
70d8c49ec0
commit
42dc956558
1 changed files with 10 additions and 3 deletions
|
@ -5,11 +5,18 @@ deploy:
|
||||||
variables:
|
variables:
|
||||||
USER: "gitlab-runner"
|
USER: "gitlab-runner"
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get update -qy
|
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
|
||||||
- apt-get install -y lftp
|
- eval $(ssh-agent -s)
|
||||||
|
- echo "$SSH_KEY" | tr -d '\r' | ssh-add - > /dev/null
|
||||||
|
- mkdir -p ~/.ssh
|
||||||
|
- chmod 700 ~/.ssh
|
||||||
|
- ssh-keyscan zamok.crans.org >> ~/.ssh/known_hosts
|
||||||
|
- chmod 644 ~/.ssh/known_hosts
|
||||||
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- make all -j8 # build the pdf
|
- make all -j8 # build the pdf
|
||||||
- lftp -e "set ftp:ssl-allow false; set sftp:auto-confirm yes; mirror -R public www/m1-eea; bye" -u $FTP_USER,$FTP_PASSWORD sftp://zamok.crans.org
|
- scp -r public comby@zamok.crans.org:www/m1-eea
|
||||||
|
# - lftp -e "set ftp:ssl-allow false; set sftp:auto-confirm yes; mirror -R public www/m1-eea; bye" -u $FTP_USER,$FTP_PASSWORD sftp://zamok.crans.org
|
||||||
only:
|
only:
|
||||||
- master # deploy the pdf only for commits made to the master branch
|
- master # deploy the pdf only for commits made to the master branch
|
||||||
|
|
Loading…
Reference in a new issue