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
name: git_ssh
get:
path: odit-git-bot
name: sshkey
---
kind: secret
name: npm_token
get:
path: niggl-npm-key
name: npmkey
---
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 openapi export
image: node:alpine
commands:
- cd backend
- yarn
- yarn openapi:export
- mv ./openapi.json ../openapi.json
- cd ..
- rm -rf backend
- name: run lib build
image: node:alpine
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:
---
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
- name: run openapi export
image: node:alpine
commands:
- cd backend
- yarn
- yarn openapi:export
- mv ./openapi.json ../openapi.json
- cd ..
- rm -rf backend
- name: run lib build
image: node:alpine
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:
- custom