From 8c8961bc8ee46fba0a0835d9a07ae36c1c938d7a Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 22 Aug 2023 09:46:00 +0200 Subject: [PATCH] unify ci --- .woodpecker/docs.yml | 54 ++++++++++++++++++++++++++++++++++++++++++ .woodpecker/notify.yml | 2 +- README.md | 2 ++ 3 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 .woodpecker/docs.yml diff --git a/.woodpecker/docs.yml b/.woodpecker/docs.yml new file mode 100644 index 0000000..24f106a --- /dev/null +++ b/.woodpecker/docs.yml @@ -0,0 +1,54 @@ +--- +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' 'CONTRIBUTING.md' + + spellcheck: + image: quay.io/thegeeklab/alpine-tools + commands: + - spellchecker --files 'README.md' 'CONTRIBUTING.md' -d .dictionary -p spell indefinite-article syntax-urls + environment: + FORCE_COLOR: "true" + NPM_CONFIG_LOGLEVEL: "error" + + pushrm-dockerhub: + image: docker.io/chko/docker-pushrm:1 + secrets: + - source: docker_password + target: DOCKER_PASS + - source: docker_username + target: DOCKER_USER + environment: + PUSHRM_FILE: README.md + PUSHRM_SHORT: Simple command-line URL parser + PUSHRM_TARGET: ${CI_REPO} + when: + - event: [push, manual] + branch: + - ${CI_REPO_DEFAULT_BRANCH} + status: [success] + + pushrm-quay: + image: docker.io/chko/docker-pushrm:1 + secrets: + - source: quay_token + target: APIKEY__QUAY_IO + environment: + PUSHRM_FILE: README.md + PUSHRM_TARGET: quay.io/${CI_REPO} + when: + - event: [push, manual] + branch: + - ${CI_REPO_DEFAULT_BRANCH} + status: [success] + +depends_on: + - build-package diff --git a/.woodpecker/notify.yml b/.woodpecker/notify.yml index c398320..a851904 100644 --- a/.woodpecker/notify.yml +++ b/.woodpecker/notify.yml @@ -23,4 +23,4 @@ steps: - status: [success, failure] depends_on: - - build-package + - docs diff --git a/README.md b/README.md index 4f4cf15..9e5fa01 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # url-parser +Simple command-line URL parser + [![Build Status](https://ci.thegeeklab.de/api/badges/thegeeklab/url-parser/status.svg)](https://ci.thegeeklab.de/repos/thegeeklab/url-parser) [![Go Report Card](https://goreportcard.com/badge/github.com/thegeeklab/url-parser)](https://goreportcard.com/report/github.com/thegeeklab/url-parser) [![Codecov](https://img.shields.io/codecov/c/github/thegeeklab/url-parser)](https://codecov.io/gh/thegeeklab/url-parser)