Add proper deploy step to CI
This commit is contained in:
@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user