mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
rolled back builder script
This commit is contained in:
parent
0353a08849
commit
6a0c25ed2b
1 changed files with 7 additions and 26 deletions
33
.drone.yml
33
.drone.yml
|
@ -7,32 +7,11 @@ platform:
|
||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build-master
|
- name: compress
|
||||||
image: node:10.13
|
image: alpine
|
||||||
when:
|
|
||||||
branch: master
|
|
||||||
environment:
|
|
||||||
ENV_CONTENT:
|
|
||||||
from_secret: env_content_master
|
|
||||||
commands:
|
commands:
|
||||||
- echo -en $${ENV_CONTENT} > ./.env
|
|
||||||
- yarn
|
|
||||||
- yarn build
|
|
||||||
- rm -rf ./app.tar.bz2
|
- rm -rf ./app.tar.bz2
|
||||||
- tar -cjf ./app.tar.bz2 -C ./dist .
|
- tar -cjf ./app.tar.bz2 -C ./ .
|
||||||
- name: build-develop
|
|
||||||
image: node:10.13
|
|
||||||
when:
|
|
||||||
branch: develop
|
|
||||||
environment:
|
|
||||||
ENV_CONTENT:
|
|
||||||
from_secret: env_content_develop
|
|
||||||
commands:
|
|
||||||
- echo -en $${ENV_CONTENT} > ./.env
|
|
||||||
- yarn
|
|
||||||
- yarn build
|
|
||||||
- rm -rf ./app.tar.bz2
|
|
||||||
- tar -cjf ./app.tar.bz2 -C ./dist .
|
|
||||||
- name: upload
|
- name: upload
|
||||||
image: drillster/drone-rsync
|
image: drillster/drone-rsync
|
||||||
when:
|
when:
|
||||||
|
@ -57,7 +36,7 @@ steps:
|
||||||
- "app.tar.bz2"
|
- "app.tar.bz2"
|
||||||
exclude:
|
exclude:
|
||||||
- "*"
|
- "*"
|
||||||
- name: deploy
|
- name: build
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
|
@ -80,9 +59,11 @@ steps:
|
||||||
script:
|
script:
|
||||||
- mkdir -p $${BUILD_PATH}/${DRONE_BRANCH}
|
- mkdir -p $${BUILD_PATH}/${DRONE_BRANCH}
|
||||||
- cd $${BUILD_PATH}/${DRONE_BRANCH}
|
- cd $${BUILD_PATH}/${DRONE_BRANCH}
|
||||||
- rm -rf ./*
|
- rm -rf ./dist
|
||||||
- tar -xjf /tmp/vault-frontend-${DRONE_BRANCH}/app.tar.bz2 -C ./
|
- tar -xjf /tmp/vault-frontend-${DRONE_BRANCH}/app.tar.bz2 -C ./
|
||||||
- cp -a $${ENV_PATH}/${DRONE_BRANCH}/. $${BUILD_PATH}/${DRONE_BRANCH}
|
- cp -a $${ENV_PATH}/${DRONE_BRANCH}/. $${BUILD_PATH}/${DRONE_BRANCH}
|
||||||
|
- yarn
|
||||||
|
- yarn build
|
||||||
- name: telgram_notify
|
- name: telgram_notify
|
||||||
image: appleboy/drone-telegram
|
image: appleboy/drone-telegram
|
||||||
when:
|
when:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue