preparing for testing/stable release
This commit is contained in:
parent
2c43942a9b
commit
51cd465887
30
.drone.yml
30
.drone.yml
@ -6,17 +6,43 @@ steps:
|
|||||||
- name: build
|
- name: build
|
||||||
image: node
|
image: node
|
||||||
commands:
|
commands:
|
||||||
|
- cd web
|
||||||
- npm install
|
- npm install
|
||||||
- npm run build
|
- npm run build
|
||||||
|
- cd ..
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy-testing
|
||||||
image: debian
|
image: debian
|
||||||
commands:
|
commands:
|
||||||
- tar -czf botamusique.tar.gz .
|
- 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:
|
volumes:
|
||||||
- name: repo
|
- name: repo
|
||||||
path: /tmp/botamusique/
|
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:
|
volumes:
|
||||||
- name: repo
|
- name: repo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user