1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00
royalnet/update.sh

18 lines
494 B
Bash
Raw Normal View History

2018-06-07 13:42:44 +00:00
#!/usr/bin/env bash
2018-11-07 19:50:37 +00:00
# Requires SENTRY_AUTH_TOKEN and SENTRY_ORG set in .sentryclirc
2018-11-07 18:45:04 +00:00
old=$(git rev-list HEAD -n 1)
2019-02-10 18:27:55 +00:00
git stash
2018-06-07 13:42:44 +00:00
git pull
2019-01-06 20:05:54 +00:00
git lfs pull
2018-11-07 18:45:04 +00:00
new=$(git rev-list HEAD -n 1)
if [ ${old} = ${new} ]; then
version=$(sentry-cli releases propose-version)
2018-11-07 19:29:40 +00:00
sentry-cli releases new -p royalnet ${version}
sentry-cli releases set-commits --auto ${version}
2018-11-07 18:45:04 +00:00
fi
sudo python3.6 -m pip install -r requirements.txt --upgrade
2018-06-07 13:42:44 +00:00
sudo service apache2 restart
2018-11-07 18:45:04 +00:00
python3.6 -OO bots.py
2019-02-10 16:00:35 +00:00
reset