test drone pipeline
continuous-integration/drone/push Build encountered an error Details

ref #31
This commit is contained in:
Nicolai Ort 2020-12-12 22:31:06 +01:00
parent f304b86cb6
commit 8d00487359
1 changed files with 31 additions and 1 deletions

View File

@ -97,4 +97,34 @@ trigger:
branch:
- main
event:
- tag
- tag
---
kind: pipeline
type: docker
name: build:lib
clone:
disable: true
steps:
- name: checkout
image: alpine/git
commands:
- git clone $DRONE_REMOTE_URL backend
- git clone https://git.odit.services/lfk/lib.git lib
- git checkout $DRONE_SOURCE_BRANCH
- cd backend
- name: build the lib
image: node:alpine
commands:
- yarn
- yarn lib
- name: checkout
image: alpine/git
commands:
- mv ./lib/dist ../lib/dist
- mv ./lib/openapi.json ../lib/openapi.json
- cd ../lib
- git add -A
- git commit -m "$DRONE_COMMIT"
- git push