mirror of
https://github.com/Aviortheking/Blog_IMIE.git
synced 2025-04-23 19:32:15 +00:00
rsync
This commit is contained in:
parent
d661c534bb
commit
3391d8bf5c
@ -1,11 +1,8 @@
|
|||||||
image: instrumentisto/rsync-ssh
|
image: instrumentisto/rsync-ssh
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
#- which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )
|
|
||||||
- eval $(ssh-agent -s)
|
- eval $(ssh-agent -s)
|
||||||
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
|
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
|
||||||
#- mkdir -p ~/.ssh
|
|
||||||
#- chmod 700 ~/.ssh
|
|
||||||
|
|
||||||
deploy_to_webserver:
|
deploy_to_webserver:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
@ -14,10 +11,7 @@ deploy_to_webserver:
|
|||||||
- master
|
- master
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- rsync
|
- rsync -av --exclude='project/.htaccess' project/* $USER_WEBSERVER@IP_WEBSERVER:/var/www/html
|
||||||
|
|
||||||
#- ansible-playbook .ansible-ci.yml
|
|
||||||
#- ansible-playbook .ansible-ci.yml
|
|
||||||
|
|
||||||
when: manual
|
when: manual
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user