Only deploy from main branch

This commit is contained in:
2023-03-23 10:28:33 -04:00
parent ede4767a39
commit 524e6b0027

View File

@ -31,13 +31,16 @@ steps:
username: root
ssh_key:
from_secret: ssh_key
command_timeout: 3m
command_timeout: 2m
script:
- pip uninstall -y vrobbler
- pip install git+https://code.unbl.ink/secstate/vrobbler.git@main
- vrobbler migrate
- vrobbler collectstatic --noinput
- immortalctl restart celery && immortalctl restart vrobbler
when:
branch:
- main
volumes:
- name: docker
host: