1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

building at builder

This commit is contained in:
Fedor Katurov 2020-11-16 13:56:15 +07:00
parent 819a7a695a
commit 2abdbeb15d

View file

@ -8,7 +8,7 @@ platform:
steps: steps:
- name: copy-env-develop - name: copy-env-develop
image: alpine image: node:10.13
when: when:
branch: develop branch: develop
environment: environment:
@ -16,11 +16,16 @@ steps:
from_secret: env_content_develop from_secret: env_content_develop
commands: commands:
- echo -en $${ENV_CONTENT} > ./.env_develop - echo -en $${ENV_CONTENT} > ./.env_develop
- name: build
image: node:10.13
commands:
- yarn
- yarn build
- name: compress - name: compress
image: alpine image: alpine
commands: commands:
- rm -rf ./app.tar.bz2 - rm -rf ./app.tar.bz2
- tar -cjf ./app.tar.bz2 -C ./ . - tar -cjf ./app.tar.bz2 -C ./dist .
- name: upload - name: upload
image: drillster/drone-rsync image: drillster/drone-rsync
when: when:
@ -68,11 +73,9 @@ 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 ./dist - rm -rf ./*
- 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: