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.
2021-03-18 15:56:49 +00:00
|
|
|
---
|
|
|
|
kind: secret
|
|
|
|
name: git_ssh
|
|
|
|
get:
|
|
|
|
path: odit-git-bot
|
|
|
|
name: sshkey
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: secret
|
|
|
|
name: npm_token
|
|
|
|
get:
|
|
|
|
path: niggl-npm-key
|
|
|
|
name: npmkey
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: kubernetes
|
|
|
|
name: build:tag
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: checkout backend
|
|
|
|
image: alpine/git
|
|
|
|
commands:
|
|
|
|
- git clone https://git.odit.services/lfk/backend backend
|
|
|
|
- cd backend
|
2023-02-02 09:45:13 +00:00
|
|
|
- git checkout dev
|
2021-03-18 15:56:49 +00:00
|
|
|
- name: run openapi export
|
2023-02-02 09:45:13 +00:00
|
|
|
image: registry.odit.services/hub/library/node:19.5.0-alpine3.16
|
2021-03-18 15:56:49 +00:00
|
|
|
commands:
|
|
|
|
- cd backend
|
|
|
|
- yarn
|
|
|
|
- yarn openapi:export
|
|
|
|
- mv ./openapi.json ../openapi.json
|
|
|
|
- cd ..
|
|
|
|
- rm -rf backend
|
|
|
|
- name: run lib build
|
2023-02-02 09:45:13 +00:00
|
|
|
image: registry.odit.services/hub/library/node:19.5.0-alpine3.16
|
2021-03-18 15:56:49 +00:00
|
|
|
commands:
|
|
|
|
- yarn
|
|
|
|
- yarn build
|
|
|
|
- npm --no-git-tag-version version ${SOURCE_TAG}
|
|
|
|
- name: push to repo
|
|
|
|
image: appleboy/drone-git-push
|
|
|
|
settings:
|
|
|
|
branch: main
|
|
|
|
commit: true
|
|
|
|
commit_message: 🚀New lib version ${SOURCE_TAG} [CI SKIP]
|
|
|
|
author_email: bot@odit.services
|
|
|
|
remote: git@git.odit.services:lfk/lfk-client-node.git
|
|
|
|
ssh_key:
|
|
|
|
from_secret: git_ssh
|
|
|
|
- name: npm
|
|
|
|
image: plugins/npm
|
|
|
|
settings:
|
|
|
|
token:
|
|
|
|
from_secret: npm_token
|
|
|
|
email: info@odit.services
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- push
|
|
|
|
include:
|
2020-12-29 13:30:25 +00:00
|
|
|
- custom
|