ci: migrate to woodpecker
ci/woodpecker/manual/docs Pipeline failed Details
ci/woodpecker/manual/notify Pipeline was successful Details

This commit is contained in:
Robert Kaussow 2024-01-16 08:49:13 +01:00
parent 709fc44572
commit e8fd8e0470
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
3 changed files with 95 additions and 81 deletions

View File

@ -1,81 +0,0 @@
---
kind: pipeline
name: default
platform:
os: linux
arch: amd64
steps:
- name: generate
image: thegeeklab/alpine-tools
commands:
- make doc
- name: sync
image: thegeeklab/git-batch
commands:
- git-batch
- name: markdownlint
image: thegeeklab/markdownlint-cli
commands:
- markdownlint 'content/**/*.md' 'README.md' -p .gitignore
- name: spellcheck
image: thegeeklab/alpine-tools
commands:
- spellchecker --no-gitignore --files 'content/**/_index.md' 'README.md' '!content/filters/*' '!content/modules/*' -d .dictionary -p spell indefinite-article syntax-urls frontmatter --frontmatter-keys title --no-suggestions
environment:
FORCE_COLOR: true
NPM_CONFIG_LOGLEVEL: error
- name: link-validation
image: lycheeverse/lychee
commands:
- lychee --no-progress --format detailed content/ README.md
- name: build
image: thegeeklab/hugo:0.115.2
commands:
- hugo --panicOnWarning
- name: beautify
image: thegeeklab/alpine-tools
commands:
- html-beautify -r -f 'public/**/*.html'
environment:
FORCE_COLOR: true
NPM_CONFIG_LOGLEVEL: error
- name: publish
image: thegeeklab/drone-s3-sync
settings:
access_key:
from_secret: s3_access_key
bucket: geekdocs
delete: true
endpoint:
from_secret: s3_endpoint
path_style: true
secret_key:
from_secret: s3_secret_access_key
source: public/
strip_prefix: public/
target: /${DRONE_REPO_NAME}
when:
ref:
- refs/heads/main
- refs/tags/**
trigger:
ref:
- refs/heads/main
- refs/tags/**
- refs/pull/**
---
kind: signature
hmac: b24b8b45df7dcd21db5430a3264b4a0c435eb3d8a1eaa6f874089852448203ac
...

69
.woodpecker/docs.yml Normal file
View File

@ -0,0 +1,69 @@
---
when:
- event: [pull_request, tag]
- event: [push, manual, cron]
branch:
- ${CI_REPO_DEFAULT_BRANCH}
steps:
- name: assets
image: quay.io/thegeeklab/alpine-tools
commands:
- make doc
- name: sync
image: quay.io/thegeeklab/git-batch
commands:
- git-batch
- name: markdownlint
image: quay.io/thegeeklab/markdownlint-cli
group: test
commands:
- markdownlint 'content/**/*.md' 'README.md'
- name: spellcheck
image: quay.io/thegeeklab/alpine-tools
group: test
commands:
- spellchecker --files 'content/**/*.md' 'README.md' -d .dictionary -p spell indefinite-article syntax-urls frontmatter --frontmatter-keys title
environment:
FORCE_COLOR: "true"
- name: link-validation
image: docker.io/lycheeverse/lychee
group: test
commands:
- lychee --no-progress --format detailed content/ README.md
- name: build
image: quay.io/thegeeklab/hugo:0.115.2
commands:
- hugo --panicOnWarning
- name: beautify
image: quay.io/thegeeklab/alpine-tools
commands:
- html-beautify -r -f 'public/**/*.html'
- name: publish
image: quay.io/thegeeklab/wp-s3-action
settings:
access_key:
from_secret: s3_access_key
bucket: geekdocs
delete: true
endpoint:
from_secret: s3_endpoint
path_style: true
secret_key:
from_secret: s3_secret_access_key
source: public/
strip_prefix: public/
target: /${CI_REPO_NAME}
when:
- event: [tag]
- event: [push, manual, cron]
branch:
- ${CI_REPO_DEFAULT_BRANCH}
status: [success, failure]

26
.woodpecker/notify.yml Normal file
View File

@ -0,0 +1,26 @@
---
when:
- event: [tag]
- event: [push, manual, cron]
branch:
- ${CI_REPO_DEFAULT_BRANCH}
runs_on: [success, failure]
steps:
- name: 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: [failure]
depends_on:
- docs