diff --git a/.drone.yml b/.drone.yml index 84a5cee..e48935b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -97,4 +97,34 @@ trigger: branch: - main event: - - tag \ No newline at end of file + - 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 \ No newline at end of file