Use CircleCI only as a signal for build process.

pull/291/head^2
Christopher Young 2016-02-28 12:03:28 -05:00
rodzic 6762c01935
commit f034df937d
2 zmienionych plików z 15 dodań i 1 usunięć

Wyświetl plik

@ -17,4 +17,4 @@ deployment:
production:
branch: master
commands:
- cd selfupdate ; ./makeupdate.sh ; cd .. ; yes | scp -i ~/.ssh/id_updates.stratux.me work/*.sh stratux-updates@updates.stratux.me:.
- yes | ssh -i ~/.ssh/id_updates.stratux.me stratux-updates@updates.stratux.me "touch queue/`git log -n 1 --pretty=%H`"

Wyświetl plik

@ -0,0 +1,14 @@
#!/bin/bash
ssh -i ~/.ssh/id_rsa.updates stratux-updates@updates.stratux.me 'ls -1 queue/' | while read git_hash ; do
echo "***** Building $git_hash. *****"
git clone https://github.com/cyoung/stratux --recursive $git_hash
cd $git_hash
git reset --hard $git_hash
cd selfupdate
./makeupdate.sh
cd ..
scp -i ~/.ssh/id_rsa.updates work/update*.sh stratux-updates@updates.stratux.me:finished/
cd ..
ssh -i ~/.ssh/id_rsa.updates stratux-updates@updates.stratux.me "rm -f queue/${git_hash}"
done