Commit 868c871f authored by Reto Da Forno's avatar Reto Da Forno

runner config updated (separate deploy jobs for testmanagement and user)

parent e205062a
......@@ -11,13 +11,13 @@ stages:
- deploy
- test
deploy to devserver:
deploy testmanagement to devserver:
stage: deploy
variables:
DEV_SERVER: 'flocklab@flocklab-dev-server.ethz.ch'
DEV_SERVER2: 'flocklab@flocklab-dev-server2.ethz.ch'
SSH_OPTIONS: 'ssh -q -o StrictHostKeyChecking=no'
# --omit-dir-times
RSYNC_OPTIONS: '-av --no-perms --no-owner --no-group --delete --exclude=*.ini --exclude=*.so'
script:
- 'apk update >/dev/null && apk add rsync openssh-client >/dev/null'
......@@ -25,17 +25,35 @@ deploy to devserver:
- 'echo "uploading files to ${DEV_SERVER}..."'
- 'rsync ${RSYNC_OPTIONS} -e "${SSH_OPTIONS}" server/testmanagementserver/ ${DEV_SERVER}:testmanagementserver/'
- 'rsync ${RSYNC_OPTIONS} -e "${SSH_OPTIONS}" server/webserver/testmanagement/ ${DEV_SERVER}:testmanagement/'
- 'rsync ${RSYNC_OPTIONS} -e "${SSH_OPTIONS}" server/webserver/user/ ${DEV_SERVER}:webserver/'
- 'echo "uploading files to ${DEV_SERVER2}..."'
- 'rsync ${RSYNC_OPTIONS} -e "${SSH_OPTIONS}" server/testmanagementserver/ ${DEV_SERVER2}:testmanagementserver/'
- 'rsync ${RSYNC_OPTIONS} -e "${SSH_OPTIONS}" server/webserver/testmanagement/ ${DEV_SERVER2}:testmanagement/'
- 'rsync ${RSYNC_OPTIONS} -e "${SSH_OPTIONS}" server/webserver/user/ ${DEV_SERVER2}:webserver/'
only:
refs:
- python3
changes:
- server/testmanagementserver/**/*
- server/webserver/testmanagement/**/*
deploy user to devserver:
stage: deploy
variables:
DEV_SERVER: 'flocklab@flocklab-dev-server.ethz.ch'
DEV_SERVER2: 'flocklab@flocklab-dev-server2.ethz.ch'
SSH_OPTIONS: 'ssh -q -o StrictHostKeyChecking=no'
RSYNC_OPTIONS: '-av --no-perms --no-owner --no-group --delete --exclude=*.ini --exclude=*.so'
script:
- 'apk update >/dev/null && apk add rsync openssh-client >/dev/null'
- 'eval $(ssh-agent -s) && echo "$CI_SSH_PRIVATE_KEY" | ssh-add -'
- 'echo "uploading files to ${DEV_SERVER}..."'
- 'rsync ${RSYNC_OPTIONS} -e "${SSH_OPTIONS}" server/webserver/user/ ${DEV_SERVER}:webserver/'
- 'echo "uploading files to ${DEV_SERVER2}..."'
- 'rsync ${RSYNC_OPTIONS} -e "${SSH_OPTIONS}" server/webserver/user/ ${DEV_SERVER2}:webserver/'
only:
refs:
- python3
changes:
- server/webserver/user/**/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment