configure CI to deploy branches on staging server

pull/3/head
maxime.batista 2 years ago
parent 64803f8ac2
commit bdbceaa841

@ -7,8 +7,6 @@ volumes:
temp: {}
trigger:
branch:
- master
event:
- push
@ -37,7 +35,7 @@ steps:
- mv src config.php profiles vendor /outputs/
- image: eeacms/rsync:latest
name: Deliver on server
name: Deliver on staging server branch
depends_on:
- "prepare php"
- "build node"
@ -50,5 +48,5 @@ steps:
- echo "$SERVER_PRIVATE_KEY" > ~/.ssh/id_rsa
- chmod 0600 ~/.ssh
- chmod 0500 ~/.ssh/id_rsa*
- rsync -avz -e "ssh -p 80 -o 'StrictHostKeyChecking=no'" --delete /outputs/* iqball@maxou.dev:/server/nginx/IQBall/
- rsync -avz -e "ssh -p 80 -o 'StrictHostKeyChecking=no'" --delete /outputs/* iqball@maxou.dev:/server/nginx/IQBall/$DRONE_BRANCH

Loading…
Cancel
Save