Commit 13893a02 authored by Reto Da Forno's avatar Reto Da Forno

.gitlab-ci.yml added

parent 9beee10d
# runner configuration file
#
# file validation: https://gitlab.ethz.ch/[project_path]/-/ci/lint
# gitlab CI how-to: https://docs.gitlab.com/ee/ci/yaml/
# YAML getting started: https://yaml.org/start.html
# YAML reference card: https://yaml.org/refcard.html
#
# note: do not use the following keywords for job names: image, services, stages, types, before_script, after_script, variables, cache
deploy to devserver2:
stage: deploy
script:
- apk update >/dev/null && apk add rsync openssh-client >/dev/null
- eval $(ssh-agent -s) && echo "$CI_SSH_PRIVATE_KEY" | ssh-add -
- 'rsync -av --no-perms --no-owner --no-group --delete -e "ssh -o StrictHostKeyChecking=no" --exclude="*.ini" server/testmanagementserver/ flocklab@flocklab-dev-server2.ethz.ch:testmanagementserver/'
- 'rsync -av --no-perms --no-owner --no-group --delete -e "ssh -o StrictHostKeyChecking=no" --exclude="*.ini" server/webserver/user/ flocklab@flocklab-dev-server2.ethz.ch:webserver/'
- 'rsync -av --no-perms --no-owner --no-group --delete -e "ssh -o StrictHostKeyChecking=no" --exclude="*.ini" server/webserver/testmanagement/ flocklab@flocklab-dev-server2.ethz.ch:testmanagement/'
only:
refs: python3
changes:
- server/testmanagementserver/**/*
- server/webserver/testmanagement/**/*
- 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