0
0
mirror of https://github.com/thegeeklab/retry.git synced 2024-11-27 01:10:36 +00:00

unify ci config

This commit is contained in:
Robert Kaussow 2023-08-22 09:19:02 +02:00
parent 11814c1435
commit 775d771189
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
9 changed files with 75 additions and 20 deletions

0
.dictionary Normal file
View File

View File

@ -51,8 +51,9 @@ branches:
strict: false
contexts:
- ci/woodpecker/pr/test
- ci/woodpecker/pr/release
- ci/woodpecker/pr/container
enforce_admins: true
- ci/woodpecker/pr/build-binary
- ci/woodpecker/pr/build-container
- ci/woodpecker/pr/docs
enforce_admins: false
required_linear_history: true
restrictions: null

6
.markdownlint.yml Normal file
View File

@ -0,0 +1,6 @@
---
default: True
MD013: False
MD041: False
MD004:
style: dash

View File

@ -7,9 +7,9 @@ when:
steps:
dryrun:
image: quay.io/thegeeklab/drone-docker-buildx:23
image: quay.io/thegeeklab/wp-docker-buildx:1
settings:
dockerfile: Dockerfile.multiarch
containerfile: Containerfile.multiarch
dry_run: true
platforms:
- linux/amd64
@ -23,10 +23,10 @@ steps:
publish-dockerhub:
group: build
image: quay.io/thegeeklab/drone-docker-buildx:23
image: quay.io/thegeeklab/wp-docker-buildx:1
settings:
auto_tag: true
dockerfile: Dockerfile.multiarch
containerfile: Containerfile.multiarch
password:
from_secret: docker_password
platforms:
@ -46,10 +46,10 @@ steps:
publish-quay:
group: build
image: quay.io/thegeeklab/drone-docker-buildx:23
image: quay.io/thegeeklab/wp-docker-buildx:1
settings:
auto_tag: true
dockerfile: Dockerfile.multiarch
containerfile: Containerfile.multiarch
password:
from_secret: quay_password
platforms:
@ -68,6 +68,5 @@ steps:
branch:
- ${CI_REPO_DEFAULT_BRANCH}
depends_on:
- test

55
.woodpecker/docs.yml Normal file
View File

@ -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: Retry any shell command
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

View File

@ -9,7 +9,7 @@ runs_on: [success, failure]
steps:
matrix:
image: quay.io/thegeeklab/drone-matrix
image: quay.io/thegeeklab/wp-matrix
settings:
homeserver:
from_secret: matrix_homeserver
@ -17,16 +17,10 @@ steps:
from_secret: matrix_password
roomid:
from_secret: matrix_roomid
template: >-
Status: **{{ .Build.Status }}**<br/>
Build: [{{ .Repo.Owner }}/{{ .Repo.Name }}]({{ .Build.Link }}){{ if .Build.Branch }} ({{ .Build.Branch }}){{ end }} by {{ .Commit.Author }}<br/>
Message: {{ .Commit.Message.Title }}
username:
from_secret: matrix_username
when:
- status: [success, failure]
depends_on:
- test
- container
- release
- docs

View File

@ -1,8 +1,8 @@
# retry
Poor-mans servie synchronizer
Retry any shell command
[![Build Status](https://ci.thegeeklab.de/api/badges/4/status.svg)](https://ci.thegeeklab.de/repos/4)
[![Build Status](https://ci.thegeeklab.de/api/badges/thegeeklab/retry/status.svg)](https://ci.thegeeklab.de/repos/thegeeklab/retry)
[![Docker Hub](https://img.shields.io/badge/dockerhub-latest-blue.svg?logo=docker&logoColor=white)](https://hub.docker.com/r/thegeeklab/retry)
[![Quay.io](https://img.shields.io/badge/quay-latest-blue.svg?logo=docker&logoColor=white)](https://quay.io/repository/thegeeklab/retry)
[![GitHub contributors](https://img.shields.io/github/contributors/thegeeklab/retry)](https://github.com/thegeeklab/retry/graphs/contributors)