mirror of
https://github.com/Aviortheking/Blog_IMIE.git
synced 2025-05-07 01:57:51 +00:00
21 lines
403 B
YAML
21 lines
403 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:
|
|
- ansible-playbook .ansible-ci.yml
|
|
|
|
when: manual
|
|
|