From 524e6b0027624f9beb3df4d296f1623af6402b50 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Thu, 23 Mar 2023 10:28:33 -0400 Subject: [PATCH] Only deploy from main branch --- .drone.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index b260eaf..9d52593 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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: