Fix eco bot service
This commit is contained in:
@@ -15,9 +15,9 @@ jobs:
|
|||||||
git clone --quiet "$REPO" /tmp/tipibot-ci
|
git clone --quiet "$REPO" /tmp/tipibot-ci
|
||||||
cd /tmp/tipibot-ci
|
cd /tmp/tipibot-ci
|
||||||
git checkout --quiet ${{ github.sha }}
|
git checkout --quiet ${{ github.sha }}
|
||||||
python3 -m venv .venv
|
python3 -m venv /opt/tipibot-ci-venv
|
||||||
.venv/bin/pip install -q -r requirements-dev.txt
|
/opt/tipibot-ci-venv/bin/pip install -q -r requirements-dev.txt
|
||||||
.venv/bin/python -m pytest tests/ -q
|
/opt/tipibot-ci-venv/bin/python -m pytest tests/ -q
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: linux
|
runs-on: linux
|
||||||
@@ -32,4 +32,4 @@ jobs:
|
|||||||
sudo systemctl restart tipibot_dev # dev bot first, as canary
|
sudo systemctl restart tipibot_dev # dev bot first, as canary
|
||||||
sleep 5
|
sleep 5
|
||||||
systemctl is-active --quiet tipibot_dev # dev crashed on startup -> abort
|
systemctl is-active --quiet tipibot_dev # dev crashed on startup -> abort
|
||||||
sudo systemctl restart tipibot # eco bot only if dev survived
|
sudo systemctl restart tipibot_eco # eco bot only if dev survived
|
||||||
|
|||||||
Reference in New Issue
Block a user