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