This repository has been archived on 2023-11-06. You can view files and clone it, but cannot push or open issues or pull requests.
lfk-client-node/.drone.yml

62 lines
1.2 KiB
YAML

---
kind: pipeline
name: build:tag
steps:
- name: checkout backend
image: alpine/git
commands:
- git clone https://git.odit.services/lfk/backend backend
- cd backend
- name: run lib build
image: node:alpine
commands:
- cd backend
- yarn
- yarn lib
- cd ..
- npm --no-git-tag-version version ${SOURCE_TAG}
- name: prepare_commit
image: alpine
commands:
- rm -rf ./dist ./openapi.json
- mv ./backend/lib/dist ./dist
- mv ./backend/lib/openapi.json ./openapi.json
- rm -rf ./backend
- name: push to repo
image: appleboy/drone-git-push
settings:
branch: main
commit: true
commit_message: new lib version [CI SKIP]
remote: git@git.odit.services:lfk/lib.git
ssh_key:
from_secret: GITLAB_SSHKEY
- name: npm
image: plugins/npm
settings:
token:
from_secret: NPM_TOKEN
email: info@odit.services
trigger:
event:
exclude:
- push
# ---
# kind: pipeline
# name: release:onpush
# steps:
# - name: npm
# image: plugins/npm
# settings:
# token:
# from_secret: NPM_TOKEN
# email: info@odit.services
# trigger:
# event:
# include:
# - push