[deploy] One more time to fix commits
This commit is contained in:
@ -104,6 +104,15 @@ jobs:
|
|||||||
git checkout vrobbler/_commit.py
|
git checkout vrobbler/_commit.py
|
||||||
|
|
||||||
- name: Copy wheel to server and deploy
|
- name: Copy wheel to server and deploy
|
||||||
|
uses: appleboy/scp-action@v1.0.0
|
||||||
|
with:
|
||||||
|
host: vrobbler.service
|
||||||
|
username: root
|
||||||
|
key: ${{ secrets.JAIL_KEY }}
|
||||||
|
source: "dist/*.whl"
|
||||||
|
target: "/var/lib/vrobbler"
|
||||||
|
|
||||||
|
- name: Install wheel and restart services
|
||||||
uses: appleboy/ssh-action@v1.0.3
|
uses: appleboy/ssh-action@v1.0.3
|
||||||
with:
|
with:
|
||||||
host: vrobbler.service
|
host: vrobbler.service
|
||||||
@ -114,7 +123,7 @@ jobs:
|
|||||||
mkdir -p /var/lib/vrobbler
|
mkdir -p /var/lib/vrobbler
|
||||||
echo "${{ gitea.sha }}" > /var/lib/vrobbler/commit.txt
|
echo "${{ gitea.sha }}" > /var/lib/vrobbler/commit.txt
|
||||||
pip uninstall -y vrobbler
|
pip uninstall -y vrobbler
|
||||||
pip install git+https://code.lab.unbl.ink/secstate/vrobbler.git@main
|
pip install /var/lib/vrobbler/dist/*.whl
|
||||||
vrobbler migrate
|
vrobbler migrate
|
||||||
vrobbler collectstatic --noinput
|
vrobbler collectstatic --noinput
|
||||||
immortalctl restart celery && immortalctl restart vrobbler
|
immortalctl restart celery && immortalctl restart vrobbler
|
||||||
|
|||||||
Reference in New Issue
Block a user