mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
made build stages
This commit is contained in:
parent
617f759d6b
commit
0353a08849
1 changed files with 14 additions and 7 deletions
21
.drone.yml
21
.drone.yml
|
@ -7,7 +7,20 @@ platform:
|
|||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: copy-env-develop
|
||||
- name: build-master
|
||||
image: node:10.13
|
||||
when:
|
||||
branch: master
|
||||
environment:
|
||||
ENV_CONTENT:
|
||||
from_secret: env_content_master
|
||||
commands:
|
||||
- echo -en $${ENV_CONTENT} > ./.env
|
||||
- yarn
|
||||
- yarn build
|
||||
- rm -rf ./app.tar.bz2
|
||||
- tar -cjf ./app.tar.bz2 -C ./dist .
|
||||
- name: build-develop
|
||||
image: node:10.13
|
||||
when:
|
||||
branch: develop
|
||||
|
@ -16,14 +29,8 @@ steps:
|
|||
from_secret: env_content_develop
|
||||
commands:
|
||||
- echo -en $${ENV_CONTENT} > ./.env
|
||||
- name: build
|
||||
image: node:10.13
|
||||
commands:
|
||||
- yarn
|
||||
- yarn build
|
||||
- name: compress
|
||||
image: alpine
|
||||
commands:
|
||||
- rm -rf ./app.tar.bz2
|
||||
- tar -cjf ./app.tar.bz2 -C ./dist .
|
||||
- name: upload
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue