From aa7fe1aeb6e7cb2034ad603f833fb4a48feaecbd Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Sun, 13 Dec 2020 19:17:46 +0100 Subject: [PATCH] new build pipeline (dry-run) --- .drone.yml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.drone.yml b/.drone.yml index dd13dc5..d19de26 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,21 +8,21 @@ steps: commands: - git clone https://git.odit.services/lfk/backend backend - cd backend - - name: run lib build + - name: run openapi export image: node:alpine commands: - cd backend - yarn - - yarn lib + - yarn openapi:export + - mv ./lib/openapi.json ../openapi.json - cd .. - - npm --no-git-tag-version version ${SOURCE_TAG} - - name: prepare_commit - image: alpine + - rm -rf backend + - name: run lib build + image: node:alpine commands: - - rm -rf ./dist ./openapi.json - - mv ./backend/lib/dist ./dist - - mv ./backend/lib/openapi.json ./openapi.json - - rm -rf ./backend + - yarn + - yarn build + # - npm --no-git-tag-version version ${SOURCE_TAG} - name: push to repo image: appleboy/drone-git-push settings: @@ -32,16 +32,16 @@ steps: remote: git@git.odit.services:lfk/lib.git ssh_key: from_secret: GITLAB_SSHKEY - - name: npm - image: plugins/npm - settings: - token: - from_secret: NPM_TOKEN - email: info@odit.services + # - name: npm + # image: plugins/npm + # settings: + # token: + # from_secret: NPM_TOKEN + # email: info@odit.services trigger: event: - exclude: + include: - push # ---