mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Update update.sh
This commit is contained in:
parent
fe4fcba383
commit
3c6e587644
1 changed files with 4 additions and 2 deletions
|
@ -1,13 +1,15 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Requires SENTRY_AUTH_TOKEN and SENTRY_ORG set in .profile
|
# Requires SENTRY_AUTH_TOKEN and SENTRY_ORG set in .profile
|
||||||
|
SENTRY_ORG=${SENTRY_ORG}
|
||||||
|
SENTRY_AUTH_TOKEN=${SENTRY_AUTH_TOKEN}
|
||||||
|
|
||||||
old=$(git rev-list HEAD -n 1)
|
old=$(git rev-list HEAD -n 1)
|
||||||
git pull
|
git pull
|
||||||
new=$(git rev-list HEAD -n 1)
|
new=$(git rev-list HEAD -n 1)
|
||||||
if [ ${old} = ${new} ]; then
|
if [ ${old} = ${new} ]; then
|
||||||
version=$(sentry-cli releases propose-version)
|
version=$(sentry-cli releases propose-version)
|
||||||
sentry-cli releases --org stefano-pigozzi new -p royalnet ${version}
|
sentry-cli releases new -p royalnet ${version}
|
||||||
sentry-cli releases --org stefano-pigozzi set-commits --auto ${version}
|
sentry-cli releases set-commits --auto ${version}
|
||||||
fi
|
fi
|
||||||
sudo python3.6 -m pip install -r requirements.txt
|
sudo python3.6 -m pip install -r requirements.txt
|
||||||
sudo service apache2 restart
|
sudo service apache2 restart
|
||||||
|
|
Loading…
Reference in a new issue