This commit is contained in:
s0dy 2018-11-17 21:41:09 +01:00
parent e1c50e4814
commit fd09d8298b

View File

@ -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