Merge pull request #258 from ZeusWPI/new-pr-deploy
Preview PR's on pr.zeus.gent
This commit is contained in:
commit
9b5c96c68a
2 changed files with 2 additions and 3 deletions
|
@ -28,7 +28,7 @@ notifications:
|
|||
before_install:
|
||||
- openssl aes-256-cbc -K $encrypted_6059a4f451fd_key -iv $encrypted_6059a4f451fd_iv
|
||||
-in id_rsa.enc -out deploy_key -d
|
||||
- echo -e "Host zeus.ugent.be\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
|
||||
- echo -e "[zeus.ugent.be]:2222 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBC87/Q3H8f7ghmA+iCtKGaNyk0fx3Z36Xrn+eGv8a4pD7MXeu6Uwr0aN5HnkcbRWXFtMwnAU3ptoP90vH7qu99w=\n[herbert.ugent.be]:2222 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGLnJMh2DgqpVnHxOmeV6KffvzZGEVfniq0NFHRGZoL4f7Uc8xeG9gn3cc7lCL02F9LwWZNwR4gSqhGt/RK2S54=\n" >> ~/.ssh/known_hosts
|
||||
- npm install
|
||||
script:
|
||||
- bundle exec nanoc --env=prod
|
||||
|
@ -37,5 +37,4 @@ after_success:
|
|||
- mv deploy_key ~/.ssh/id_rsa
|
||||
- chmod 600 ~/.ssh/id_rsa
|
||||
- chmod +x ./deploy.sh
|
||||
- echo -e "Host $TRAVIS_PULL_REQUEST.zeus.werthen.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
|
||||
- ./deploy.sh
|
||||
|
|
|
@ -7,5 +7,5 @@ if [[ $TRAVIS_PULL_REQUEST == "false" ]]; then
|
|||
bundle exec nanoc --env=prod deploy public
|
||||
fi
|
||||
else
|
||||
rsync -e 'ssh -p 2222' -aglpPrtvz --delete output/ "zeuspr@herbert.ugent.be:/home/zeuspr/$TRAVIS_PULL_REQUEST/"
|
||||
rsync -e 'ssh -p 2222' -aglpPrtvz --delete output/ "zeuspr@herbert.ugent.be:/home/zeuspr/public/$TRAVIS_PULL_REQUEST/"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue