Added pipeline type
continuous-integration/drone Build is passing Details

This commit is contained in:
Nicolai Ort 2021-03-18 16:56:49 +01:00
parent 8923bb28d0
commit f1e5179fc1
1 changed files with 62 additions and 61 deletions

View File

@ -1,62 +1,63 @@
--- ---
kind: secret kind: secret
name: git_ssh name: git_ssh
get: get:
path: odit-git-bot path: odit-git-bot
name: sshkey name: sshkey
--- ---
kind: secret kind: secret
name: npm_token name: npm_token
get: get:
path: niggl-npm-key path: niggl-npm-key
name: npmkey name: npmkey
--- ---
kind: pipeline kind: pipeline
name: build:tag type: kubernetes
name: build:tag
steps:
- name: checkout backend steps:
image: alpine/git - name: checkout backend
commands: image: alpine/git
- git clone https://git.odit.services/lfk/backend backend commands:
- cd backend - git clone https://git.odit.services/lfk/backend backend
- name: run openapi export - cd backend
image: node:alpine - name: run openapi export
commands: image: node:alpine
- cd backend commands:
- yarn - cd backend
- yarn openapi:export - yarn
- mv ./openapi.json ../openapi.json - yarn openapi:export
- cd .. - mv ./openapi.json ../openapi.json
- rm -rf backend - cd ..
- name: run lib build - rm -rf backend
image: node:alpine - name: run lib build
commands: image: node:alpine
- yarn commands:
- yarn build - yarn
- npm --no-git-tag-version version ${SOURCE_TAG} - yarn build
- name: push to repo - npm --no-git-tag-version version ${SOURCE_TAG}
image: appleboy/drone-git-push - name: push to repo
settings: image: appleboy/drone-git-push
branch: main settings:
commit: true branch: main
commit_message: 🚀New lib version ${SOURCE_TAG} [CI SKIP] commit: true
author_email: bot@odit.services commit_message: 🚀New lib version ${SOURCE_TAG} [CI SKIP]
remote: git@git.odit.services:lfk/lfk-client-node.git author_email: bot@odit.services
ssh_key: remote: git@git.odit.services:lfk/lfk-client-node.git
from_secret: git_ssh ssh_key:
- name: npm from_secret: git_ssh
image: plugins/npm - name: npm
settings: image: plugins/npm
token: settings:
from_secret: npm_token token:
email: info@odit.services from_secret: npm_token
email: info@odit.services
trigger:
event: trigger:
exclude: event:
- push exclude:
include: - push
include:
- custom - custom