Travis deployment (#1014)

* Travis deployment

* Executable scripts
This commit is contained in:
inorichi
2017-09-30 18:49:43 +02:00
committed by GitHub
parent 886b1019ed
commit 1f32d13698
5 changed files with 80 additions and 32 deletions

15
.travis/deploy.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
pattern="tachiyomi-r*"
files=( $pattern )
export ARTIFACT="${files[0]}"
if [ -z "$ARTIFACT" ]; then
echo "Artifact not found"
exit 1
fi
export SSHOPTIONS="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i ${DEPLOY_KEY}"
scp $SSHOPTIONS $ARTIFACT $DEPLOY_USER@$DEPLOY_HOST:builds/
ssh $SSHOPTIONS $DEPLOY_USER@$DEPLOY_HOST ln -sf builds/$ARTIFACT builds/latest