new build pipeline (dry-run)
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Nicolai Ort 2020-12-13 19:17:46 +01:00
parent e40f174241
commit aa7fe1aeb6

View File

@ -8,21 +8,21 @@ steps:
commands: commands:
- git clone https://git.odit.services/lfk/backend backend - git clone https://git.odit.services/lfk/backend backend
- cd backend - cd backend
- name: run lib build - name: run openapi export
image: node:alpine image: node:alpine
commands: commands:
- cd backend - cd backend
- yarn - yarn
- yarn lib - yarn openapi:export
- mv ./lib/openapi.json ../openapi.json
- cd .. - cd ..
- npm --no-git-tag-version version ${SOURCE_TAG} - rm -rf backend
- name: prepare_commit - name: run lib build
image: alpine image: node:alpine
commands: commands:
- rm -rf ./dist ./openapi.json - yarn
- mv ./backend/lib/dist ./dist - yarn build
- mv ./backend/lib/openapi.json ./openapi.json # - npm --no-git-tag-version version ${SOURCE_TAG}
- rm -rf ./backend
- name: push to repo - name: push to repo
image: appleboy/drone-git-push image: appleboy/drone-git-push
settings: settings:
@ -32,16 +32,16 @@ steps:
remote: git@git.odit.services:lfk/lib.git remote: git@git.odit.services:lfk/lib.git
ssh_key: ssh_key:
from_secret: GITLAB_SSHKEY from_secret: GITLAB_SSHKEY
- name: npm # - name: npm
image: plugins/npm # image: plugins/npm
settings: # settings:
token: # token:
from_secret: NPM_TOKEN # from_secret: NPM_TOKEN
email: info@odit.services # email: info@odit.services
trigger: trigger:
event: event:
exclude: include:
- push - push
# --- # ---