From 51cd465887cf894b508cae8c59aa98c4492fe70d Mon Sep 17 00:00:00 2001 From: azlux Date: Wed, 17 Jun 2020 18:55:20 +0200 Subject: [PATCH] preparing for testing/stable release --- .drone.yml | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 7d13f48..13d725b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,17 +6,43 @@ steps: - name: build image: node commands: + - cd web - npm install - npm run build + - cd .. + when: + branch: + - master + event: + - push - - name: deploy + - name: deploy-testing image: debian commands: - tar -czf botamusique.tar.gz . - - mv botamusique.tar.gz /tmp/botamusique/sources-test.tar.gz + - mv botamusique.tar.gz /tmp/botamusique/sources.tar.gz volumes: - name: repo path: /tmp/botamusique/ + when: + branch: + - master + event: + - push + + - name: deploy-stable + image: debian + commands: + - tar -czf botamusique.tar.gz . + - mv botamusique.tar.gz /tmp/botamusique/sources.tar.gz + volumes: + - name: repo + path: /tmp/botamusique/ + when: + branch: + - master + event: + - tag volumes: - name: repo