From fd09d8298b331a29b80af4ecff558dfd11694bea Mon Sep 17 00:00:00 2001 From: s0dy Date: Sat, 17 Nov 2018 21:41:09 +0100 Subject: [PATCH] home --- .gitlab-ci.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5636120..4843a11 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,4 @@ -image: dblaci/ubuntu-ssh-rsync +image: jcpowermac/alpine-ansible-ssh before_script: #- which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y ) @@ -6,7 +6,7 @@ before_script: - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null - mkdir -p ~/.ssh - chmod 700 ~/.ssh - - ssh-keyscan 35.180.10.123 >> ~/.ssh/known_hosts + #- ssh-keyscan 35.180.10.123 >> ~/.ssh/known_hosts deploy_to_webserver: stage: deploy @@ -15,11 +15,7 @@ deploy_to_webserver: - master script: - #- rsync -rpv --exclude='project/.htaccess' project/* $USER_WEBSERVER@$IP_WEBSERVER:/var/www/html - - echo $HOME - - ls -l /root - - pwd - - ls -l + - cat /etc/ansible/hosts when: manual