feat(ci)!: Switch to woodpecker
This commit is contained in:
41
.woodpecker/release.yml
Normal file
41
.woodpecker/release.yml
Normal file
@@ -0,0 +1,41 @@
|
||||
steps:
|
||||
- name: checkout backend
|
||||
image: registry.odit.services/hub/alpine/git
|
||||
commands:
|
||||
- git clone https://git.odit.services/lfk/backend backend
|
||||
- cd backend
|
||||
- git checkout dev
|
||||
- name: run openapi export
|
||||
image: registry.odit.services/hub/library/node:19.5.0-alpine3.16
|
||||
commands:
|
||||
- cd backend
|
||||
- yarn
|
||||
- yarn openapi:export
|
||||
- mv ./openapi.json ../openapi.json
|
||||
- cd ..
|
||||
- rm -rf backend
|
||||
- name: run lib build
|
||||
image: registry.odit.services/hub/library/node:19.5.0-alpine3.16
|
||||
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-js.git
|
||||
ssh_key:
|
||||
from_secret: odit-git-bot-sshkey
|
||||
- name: npm
|
||||
image: plugins/npm
|
||||
settings:
|
||||
token:
|
||||
from_secret: niggl-npm-key
|
||||
email: info@odit.services
|
||||
when:
|
||||
event:
|
||||
- manual
|
||||
Reference in New Issue
Block a user