test drone pipeline
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
ref #31
This commit is contained in:
parent
f304b86cb6
commit
8d00487359
32
.drone.yml
32
.drone.yml
@ -97,4 +97,34 @@ trigger:
|
|||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
event:
|
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…
x
Reference in New Issue
Block a user