Blog_IMIE/.gitlab-ci.yml
2018-11-17 16:34:59 +01:00

18 lines
324 B
YAML

image: instrumentisto/rsync-ssh
before_script:
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
deploy_to_webserver:
stage: deploy
only:
- master
script:
- rsync -av --exclude='project/.htaccess' project/* $USER_WEBSERVER@IP_WEBSERVER:/var/www/html
when: manual