mirror of
https://github.com/Aviortheking/Blog_IMIE.git
synced 2025-04-23 03:12:11 +00:00
rsync
This commit is contained in:
parent
24dbdcf281
commit
714420ac75
@ -1,6 +1,7 @@
|
|||||||
image: dblaci/ubuntu-ssh-rsync
|
image: dblaci/ubuntu-ssh-rsync
|
||||||
|
|
||||||
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
|
- mkdir -p ~/.ssh
|
||||||
@ -13,7 +14,8 @@ deploy_to_webserver:
|
|||||||
- master
|
- master
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- rsync -av --exclude='project/.htaccess' project/* gitlab@35.180.10.123:/var/www/html
|
- rsync -av --exclude='project/.htaccess' project/* gitlab@35.180.10.123:/var/www/html
|
||||||
|
|
||||||
|
|
||||||
when: manual
|
when: manual
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user