From 2abdbeb15d83751b8bdc806f027313673d1f59fb Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Mon, 16 Nov 2020 13:56:15 +0700 Subject: [PATCH] building at builder --- .drone.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index f4e2b53d..aafcccf7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,7 +8,7 @@ platform: steps: - name: copy-env-develop - image: alpine + image: node:10.13 when: branch: develop environment: @@ -16,11 +16,16 @@ steps: from_secret: env_content_develop commands: - echo -en $${ENV_CONTENT} > ./.env_develop + - 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 ./ . + - tar -cjf ./app.tar.bz2 -C ./dist . - name: upload image: drillster/drone-rsync when: @@ -68,11 +73,9 @@ steps: script: - mkdir -p $${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 ./ - cp -a $${ENV_PATH}/${DRONE_BRANCH}/. $${BUILD_PATH}/${DRONE_BRANCH} - - yarn - - yarn build - name: telgram_notify image: appleboy/drone-telegram when: