test drone pipeline
continuous-integration/drone/push Build encountered an error
Details
continuous-integration/drone/push Build encountered an error
Details
ref #31
This commit is contained in:
parent
f304b86cb6
commit
8d00487359
32
.drone.yml
32
.drone.yml
|
@ -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
|
Loading…
Reference in New Issue