parent
e59630b17e
commit
ff178f9d77
32
.drone.yml
32
.drone.yml
@ -98,35 +98,3 @@ trigger:
|
|||||||
- 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
|
|
||||||
- cd backend
|
|
||||||
- git checkout $DRONE_SOURCE_BRANCH
|
|
||||||
- name: build the lib
|
|
||||||
image: node:alpine
|
|
||||||
commands:
|
|
||||||
- cd backend
|
|
||||||
- yarn
|
|
||||||
- yarn lib
|
|
||||||
- name: push
|
|
||||||
image: alpine/git
|
|
||||||
commands:
|
|
||||||
- cd backend
|
|
||||||
- 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