From 72066aa85179ea7e70e9203ed617fd7d0e2ec37b Mon Sep 17 00:00:00 2001 From: mazenovi <vmazenod@gmail.com> Date: Fri, 16 Jun 2017 18:06:20 +0200 Subject: [PATCH] enhance ci --- .gitlab-ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 512308e..85a9567 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,4 @@ -image: ubuntu:precise +image: ubuntu:xenial cache: paths: @@ -27,6 +27,7 @@ deploy: dependencies: - build script: + - apt-get install -y --force-yes rsync - scp -r output/* mazenod@192.168.100.59:~/public_html/ - - ssh mazenod@192.168.100.59 'find ~/public_html/ -type f -exec chmod -R 644 {} \;' - - ssh mazenod@192.168.100.59 'find ~/public_html/ -type d -exec chmod -R 755 {} \;' + - rsync -az --exclude '_' -e ssh output/ mazenod@192.168.100.59:~/public_html/ + - rsync -az --exclude '_' -e ssh output/ $USERNAME@$HOST:~/public_html/ -- GitLab