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:
- 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
# ---