ci: migrate to woodpecker (#1)
All checks were successful
ci/woodpecker/manual/test Pipeline was successful
ci/woodpecker/manual/docs Pipeline was successful
ci/woodpecker/manual/notify Pipeline was successful

Reviewed-on: #1
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
Co-committed-by: Robert Kaussow <mail@thegeeklab.de>
This commit is contained in:
Robert Kaussow 2023-12-07 10:58:57 +01:00 committed by Robert Kaussow
parent 09a88c17ea
commit 0f7dc6bc62
5 changed files with 64 additions and 74 deletions

View File

@ -1,72 +0,0 @@
---
kind: pipeline
name: test
platform:
os: linux
arch: amd64
concurrency:
limit: 1
steps:
- name: markdownlint
image: quay.io/thegeeklab/markdownlint-cli
commands:
- markdownlint 'README.md'
- name: spellcheck
image: quay.io/thegeeklab/alpine-tools
commands:
- spellchecker --files 'README.md' -d .dictionary -p spell indefinite-article syntax-urls
environment:
FORCE_COLOR: true
NPM_CONFIG_LOGLEVEL: error
- name: lint
image: docker.io/koalaman/shellcheck-alpine:stable
commands:
- grep -ErlI '^#!(.*/|.*env +)(sh|bash|ksh)' ./shell/ | xargs -r shellcheck
trigger:
ref:
- refs/heads/main
- refs/tags/**
- refs/pull/**
---
kind: pipeline
name: notifications
platform:
os: linux
arch: amd64
steps:
- name: matrix
image: quay.io/thegeeklab/drone-matrix
settings:
homeserver:
from_secret: matrix_homeserver
password:
from_secret: matrix_password
roomid:
from_secret: matrix_roomid
template: "Status: **{{ .Build.Status }}**<br/> Build: [{{ .Repo.Owner }}/{{ .Repo.Name }}]({{ .Build.Link }}){{ if .Build.Branch }} ({{ .Build.Branch }}){{ end }} by {{ .Commit.Author }}<br/> Message: {{ .Commit.Message.Title }}"
username:
from_secret: matrix_username
when:
status:
- success
- failure
trigger:
ref:
- refs/heads/main
- refs/tags/**
status:
- success
- failure
depends_on:
- test

23
.woodpecker/docs.yml Normal file
View File

@ -0,0 +1,23 @@
---
when:
- event: [pull_request, tag]
- event: [push, manual]
branch:
- ${CI_REPO_DEFAULT_BRANCH}
steps:
markdownlint:
image: quay.io/thegeeklab/markdownlint-cli
commands:
- markdownlint 'README.md'
spellcheck:
image: quay.io/thegeeklab/alpine-tools
commands:
- spellchecker --files 'README.md' -d .dictionary -p spell indefinite-article syntax-urls
environment:
FORCE_COLOR: "true"
NPM_CONFIG_LOGLEVEL: "error"
depends_on:
- test

26
.woodpecker/notify.yml Normal file
View File

@ -0,0 +1,26 @@
---
when:
- event: [tag]
- event: [push, manual]
branch:
- ${CI_REPO_DEFAULT_BRANCH}
runs_on: [success, failure]
steps:
matrix:
image: quay.io/thegeeklab/wp-matrix
settings:
homeserver:
from_secret: matrix_homeserver
password:
from_secret: matrix_password
roomid:
from_secret: matrix_roomid
username:
from_secret: matrix_username
when:
- status: [success, failure]
depends_on:
- docs

13
.woodpecker/test.yml Normal file
View File

@ -0,0 +1,13 @@
---
when:
- event: [pull_request, tag]
- event: [push, manual]
branch:
- ${CI_REPO_DEFAULT_BRANCH}
steps:
lint:
group: test
image: docker.io/koalaman/shellcheck-alpine:stable
commands:
- grep -ErlI '^#!(.*/|.*env +)(sh|bash|ksh)' ./shell/ | xargs -r shellcheck

View File

@ -1,8 +1,8 @@
# helpers # helpers
[![Build Status](https://img.shields.io/drone/build/xoxys/helpers?logo=drone&server=https%3A%2F%2Fdrone.rknet.org)](https://drone.rknet.org/xoxys/helpers) [![status-badge](https://ci.rknet.org/api/badges/xoxys/helpers/status.svg)](https://ci.rknet.org/repos/xoxys/helpers)
Collection of shell helpers, snippets and command cheatsheets for recurring tasks. Most of the things in this repository don't work out of the box and don't have proper error handling. Think before you use them! Collection of shell helpers, snippets and command cheatsheets for recurring tasks. Most of the scripts in this repository don't work out of the box and don't have proper error handling. Use it on your own risk.
## License ## License