mirror of
https://github.com/Aviortheking/Blog_IMIE.git
synced 2025-05-21 08:39:55 +00:00
24 lines
487 B
YAML
24 lines
487 B
YAML
image: geerlingguy/docker-debian9-ansible:latest
|
|
|
|
before_script:
|
|
- 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
|
|
|
|
deploy_to_webserver:
|
|
stage: deploy
|
|
|
|
only:
|
|
- master
|
|
|
|
script:
|
|
- ls -l ~/.ssh/
|
|
- ls -l /etc/ansible/
|
|
#- ansible-playbook .ansible-ci.yml
|
|
#- ansible-playbook .ansible-ci.yml
|
|
|
|
when: manual
|
|
|