From 714420ac75a58362c2fcc1a621a0f9e363fd8079 Mon Sep 17 00:00:00 2001 From: s0dy Date: Sat, 17 Nov 2018 16:51:34 +0100 Subject: [PATCH] rsync --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a5bc799..9dbee10 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,7 @@ image: dblaci/ubuntu-ssh-rsync before_script: + - which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y ) - eval $(ssh-agent -s) - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null - mkdir -p ~/.ssh @@ -13,7 +14,8 @@ deploy_to_webserver: - master script: - - rsync -av --exclude='project/.htaccess' project/* gitlab@35.180.10.123:/var/www/html + - rsync -av --exclude='project/.htaccess' project/* gitlab@35.180.10.123:/var/www/html + when: manual