mirror of
https://github.com/Aviortheking/Blog_IMIE.git
synced 2025-06-15 19:49:19 +00:00
alpine image
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user