1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

deploy landing page only from develop branch

This commit is contained in:
Steffen Vogel 2016-09-10 00:03:43 -04:00
parent ce6a65259f
commit 0ac9ea1fbe

View file

@ -74,11 +74,11 @@ docs:
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > $HOME/.ssh/config
- ssh-keyscan -H $DEPLOY_HOST >> $HOME/.ssh/known_hosts
deploy-docs:
deliver:
stage: deploy
<<: *ssh
script:
- scp -pr web/landing.html $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_PATH/index.html
- [ "$CI_BUILD_REF_NAME" == "develop" ] && scp -pr web/landing.html $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_PATH/index.html
- scp -pr doc/html/ $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_PATH/doc/$CI_BUILD_REF_NAME/
only:
- develop