فهرست منبع

Only deploy from main branch

Colin Powell 2 سال پیش
والد
کامیت
524e6b0027
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      .drone.yml

+ 4 - 1
.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: