alpine image

This commit is contained in:
s0dy 2018-11-17 16:04:34 +01:00
parent e8227b35ce
commit 35805f5657
2 changed files with 5 additions and 18 deletions

View File

@ -1,12 +0,0 @@
---
- hosts: 35.180.10.123
become: yes
become_user: root
tasks:
- name: Copy project/index.php
copy:
src: project/index.php
dest: /var/www/html
owner: apache
group: apache

View File

@ -1,11 +1,11 @@
image: geerlingguy/docker-debian9-ansible:latest
image: alpine
before_script:
- which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )
#- 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
- chmod 700 ~/.ssh
#- mkdir -p ~/.ssh
#- chmod 700 ~/.ssh
deploy_to_webserver:
stage: deploy
@ -14,8 +14,7 @@ deploy_to_webserver:
- master
script:
- ls -l ~/.ssh/
- ls -l /etc/ansible/
- rsync
#- ansible-playbook .ansible-ci.yml
#- ansible-playbook .ansible-ci.yml