Add proper deploy step to CI

This commit is contained in:
2023-03-22 23:13:20 -04:00
parent a0d67cbcd2
commit 8b21861867

View File

@ -23,7 +23,7 @@ steps:
# Mount pip cache from host # Mount pip cache from host
- name: pip_cache - name: pip_cache
path: /root/.cache/pip path: /root/.cache/pip
- name: lab deploy - name: deploy
image: appleboy/drone-ssh image: appleboy/drone-ssh
settings: settings:
host: host:
@ -33,7 +33,11 @@ steps:
from_secret: ssh_key from_secret: ssh_key
command_timeout: 2m command_timeout: 2m
script: script:
- ls - pip uninstall -y -r vrobbler
- pip install git+https://code.unbl.ink/secstate/vrobbler.git@main
- vrobbler migrate
- vrobbler collectstatic --noinput
- immortalctl restart celery && immortalctl restart vrobbler
volumes: volumes:
- name: docker - name: docker
host: host: