From 6b19718e3284e2609d587fcc5dfd20f88e9bd32c Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 22 Aug 2023 09:25:21 +0200 Subject: [PATCH] unify ci config --- .dictionary | 0 .github/settings.yml | 3 ++- .markdownlint.yml | 6 +++++ .woodpecker/docs.yml | 55 ++++++++++++++++++++++++++++++++++++++++++++ README.md | 2 +- 5 files changed, 64 insertions(+), 2 deletions(-) create mode 100644 .dictionary create mode 100644 .markdownlint.yml create mode 100644 .woodpecker/docs.yml diff --git a/.dictionary b/.dictionary new file mode 100644 index 0000000..e69de29 diff --git a/.github/settings.yml b/.github/settings.yml index 582c7d3..8ca6e90 100644 --- a/.github/settings.yml +++ b/.github/settings.yml @@ -51,8 +51,9 @@ branches: strict: false contexts: - ci/woodpecker/pr/test - - ci/woodpecker/pr/build-package + - ci/woodpecker/pr/build-binary - ci/woodpecker/pr/build-container + - ci/woodpecker/pr/docs enforce_admins: false required_linear_history: true restrictions: null diff --git a/.markdownlint.yml b/.markdownlint.yml new file mode 100644 index 0000000..b59a114 --- /dev/null +++ b/.markdownlint.yml @@ -0,0 +1,6 @@ +--- +default: True +MD013: False +MD041: False +MD004: + style: dash diff --git a/.woodpecker/docs.yml b/.woodpecker/docs.yml new file mode 100644 index 0000000..8fa837d --- /dev/null +++ b/.woodpecker/docs.yml @@ -0,0 +1,55 @@ +--- +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: Poor-mans service synchronizer + 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-binary + - build-container diff --git a/README.md b/README.md index b4af904..9375075 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # wait-for -Poor-mans servie synchronizer +Poor-mans service synchronizer [![Build Status](https://ci.thegeeklab.de/api/badges/thegeeklab/wait-for/status.svg)](https://ci.thegeeklab.de/repos/thegeeklab/wait-for) [![Docker Hub](https://img.shields.io/badge/dockerhub-latest-blue.svg?logo=docker&logoColor=white)](https://hub.docker.com/r/thegeeklab/wait-for)