preparing for testing/stable release

This commit is contained in:
azlux 2020-06-17 18:55:20 +02:00 committed by GitHub
parent 2c43942a9b
commit 51cd465887
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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