Install rsync into deploy stage

This commit is contained in:
Joel Collins 2019-08-21 10:30:10 +00:00
parent bff6a570d5
commit a9bde40964

View file

@ -39,6 +39,7 @@ deploy:
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
script:
- 'which rsync || ( apt-get update -y && apt-get install rsync -y )'
- mkdir -p "./release-builds"
- touch "./release-builds/build-placeholder.txt"
- rsync -hrvz -e ssh release-builds/ ci-user@openflexure.bath.ac.uk:/var/www/build/openflexure-ev/