Move to woodpecker
continuous-integration/woodpecker the build failed Details

Signed-off-by: jolheiser <john.olheiser@gmail.com>
pull/1/head
jolheiser 2021-12-09 23:10:03 -06:00
parent 125458693e
commit 49129bb471
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
2 changed files with 44 additions and 44 deletions

View File

@ -1,44 +0,0 @@
---
kind: pipeline
name: compliance
trigger:
event:
- pull_request
steps:
- name: build
pull: always
image: node:14
commands:
- npm install
- npm run build
---
kind: pipeline
name: release
trigger:
event:
- push
branch:
- main
steps:
- name: build
pull: always
image: node:14
commands:
- npm install
- npm run build
- name: archive
pull: always
image: jolheiser/drone-arc:latest
settings:
files:
- "dist/*"
output: dist.tar.gz
- name: gitea-release
pull: always
image: jolheiser/drone-gitea-main:latest
settings:
token:
from_secret: gitea_token
base: https://git.birbmc.com
files:
- "dist.tar.gz"

44
.woodpecker.yml 100644
View File

@ -0,0 +1,44 @@
clone:
git:
image: woodpeckerci/plugin-git:next
pipeline:
compliance:
image: node:14
commands:
- npm install
- npm run build
when:
event: [pull_request]
netlify:
image: node:14
secrets:
- source: bot_token
target: bot_token
- source: netlify_site_id
target: netlify_site_id
- source: netlify_auth_token
target: netlify_auth_token
commands:
- node netlify.js
when:
event: [pull_request]
archive:
image: jolheiser/drone-arc:latest
when:
event: push
branch: main
files:
- "dist/*"
output: dist.tar.gz
release:
image: jolheiser/drone-gitea-main:latest
when:
event: push
branch: main
secrets:
- source: gitea_token
target: plugin_gitea_token
base: https://git.jojodev.com
files:
- "dist.tar.gz"