mirror of
https://github.com/Aviortheking/Blog_IMIE.git
synced 2025-04-23 03:12:11 +00:00
alpine image
This commit is contained in:
parent
e8227b35ce
commit
35805f5657
@ -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
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user