kopia lustrzana https://github.com/cyoung/stratux
Use CircleCI only as a signal for build process.
rodzic
6762c01935
commit
f034df937d
|
@ -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`"
|
||||
|
|
|
@ -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
|
Ładowanie…
Reference in New Issue