0
0
mirror of https://github.com/thegeeklab/retry.git synced 2024-11-23 05:50:39 +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 strict: false
contexts: contexts:
- ci/woodpecker/pr/test - ci/woodpecker/pr/test
- ci/woodpecker/pr/release - ci/woodpecker/pr/build-binary
- ci/woodpecker/pr/container - ci/woodpecker/pr/build-container
enforce_admins: true - ci/woodpecker/pr/docs
enforce_admins: false
required_linear_history: true required_linear_history: true
restrictions: null 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: steps:
dryrun: dryrun:
image: quay.io/thegeeklab/drone-docker-buildx:23 image: quay.io/thegeeklab/wp-docker-buildx:1
settings: settings:
dockerfile: Dockerfile.multiarch containerfile: Containerfile.multiarch
dry_run: true dry_run: true
platforms: platforms:
- linux/amd64 - linux/amd64
@ -23,10 +23,10 @@ steps:
publish-dockerhub: publish-dockerhub:
group: build group: build
image: quay.io/thegeeklab/drone-docker-buildx:23 image: quay.io/thegeeklab/wp-docker-buildx:1
settings: settings:
auto_tag: true auto_tag: true
dockerfile: Dockerfile.multiarch containerfile: Containerfile.multiarch
password: password:
from_secret: docker_password from_secret: docker_password
platforms: platforms:
@ -46,10 +46,10 @@ steps:
publish-quay: publish-quay:
group: build group: build
image: quay.io/thegeeklab/drone-docker-buildx:23 image: quay.io/thegeeklab/wp-docker-buildx:1
settings: settings:
auto_tag: true auto_tag: true
dockerfile: Dockerfile.multiarch containerfile: Containerfile.multiarch
password: password:
from_secret: quay_password from_secret: quay_password
platforms: platforms:
@ -68,6 +68,5 @@ steps:
branch: branch:
- ${CI_REPO_DEFAULT_BRANCH} - ${CI_REPO_DEFAULT_BRANCH}
depends_on: depends_on:
- test - 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: steps:
matrix: matrix:
image: quay.io/thegeeklab/drone-matrix image: quay.io/thegeeklab/wp-matrix
settings: settings:
homeserver: homeserver:
from_secret: matrix_homeserver from_secret: matrix_homeserver
@ -17,16 +17,10 @@ steps:
from_secret: matrix_password from_secret: matrix_password
roomid: roomid:
from_secret: matrix_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: username:
from_secret: matrix_username from_secret: matrix_username
when: when:
- status: [success, failure] - status: [success, failure]
depends_on: depends_on:
- test - docs
- container
- release

View File

@ -1,8 +1,8 @@
# retry # 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) [![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) [![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) [![GitHub contributors](https://img.shields.io/github/contributors/thegeeklab/retry)](https://github.com/thegeeklab/retry/graphs/contributors)