From e8fd8e0470d1ff18f87af4697fd091539f8d40c0 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 16 Jan 2024 08:49:13 +0100 Subject: [PATCH] ci: migrate to woodpecker --- .drone.yml | 81 ------------------------------------------ .woodpecker/docs.yml | 69 +++++++++++++++++++++++++++++++++++ .woodpecker/notify.yml | 26 ++++++++++++++ 3 files changed, 95 insertions(+), 81 deletions(-) delete mode 100644 .drone.yml create mode 100644 .woodpecker/docs.yml create mode 100644 .woodpecker/notify.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 4792fff..0000000 --- a/.drone.yml +++ /dev/null @@ -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 - -... diff --git a/.woodpecker/docs.yml b/.woodpecker/docs.yml new file mode 100644 index 0000000..04d1a00 --- /dev/null +++ b/.woodpecker/docs.yml @@ -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] diff --git a/.woodpecker/notify.yml b/.woodpecker/notify.yml new file mode 100644 index 0000000..9ba18a9 --- /dev/null +++ b/.woodpecker/notify.yml @@ -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