diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index a7ad6e0..0000000 --- a/.drone.yml +++ /dev/null @@ -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 }}**
Build: [{{ .Repo.Owner }}/{{ .Repo.Name }}]({{ .Build.Link }}){{ if .Build.Branch }} ({{ .Build.Branch }}){{ end }} by {{ .Commit.Author }}
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 diff --git a/.woodpecker/docs.yml b/.woodpecker/docs.yml new file mode 100644 index 0000000..4df7ade --- /dev/null +++ b/.woodpecker/docs.yml @@ -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 diff --git a/.woodpecker/notify.yml b/.woodpecker/notify.yml new file mode 100644 index 0000000..a851904 --- /dev/null +++ b/.woodpecker/notify.yml @@ -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 diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml new file mode 100644 index 0000000..1949fb3 --- /dev/null +++ b/.woodpecker/test.yml @@ -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 diff --git a/README.md b/README.md index 97d171a..2c55fb2 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # 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