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
|
||||
|
||||
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
|
||||
@ -15,5 +16,6 @@ deploy_to_webserver:
|
||||
script:
|
||||
- rsync -av --exclude='project/.htaccess' project/* gitlab@35.180.10.123:/var/www/html
|
||||
|
||||
|
||||
when: manual
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user