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