Added ci pipeline for lib building
Some checks failed
continuous-integration/drone/push Build encountered an error
Some checks failed
continuous-integration/drone/push Build encountered an error
This commit is contained in:
25
.drone.yml
Normal file
25
.drone.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
kind: pipeline
|
||||
name: build:test
|
||||
|
||||
steps:
|
||||
- name: checkout backend
|
||||
image: alpine/git
|
||||
commands:
|
||||
- git clone https://git.odit.services/lfk/backend backend
|
||||
- git checkout feature/31-lib_generation
|
||||
- name: run lib build
|
||||
image: node:alpine
|
||||
commands:
|
||||
- cd backend
|
||||
- yarn
|
||||
- yarn lib
|
||||
- name: checkout backend
|
||||
image: alpine/git
|
||||
commands:
|
||||
- rm -rf ./dist ./openapi.json
|
||||
- mv ./backend/lib/dist ./dist
|
||||
- mv ./backend/lib/openapi.json ./openapi.json
|
||||
- git add -A
|
||||
- git commit -m "new lib version [CI SKIP]"
|
||||
- git push
|
||||
Reference in New Issue
Block a user