0
0
mirror of https://github.com/thegeeklab/retry.git synced 2024-06-02 18:29:39 +02:00

ci: migrate from drone to woodpecker

This commit is contained in:
Robert Kaussow 2023-07-24 22:28:14 +02:00
parent 8fccfdda3b
commit f3f5bc13d4
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 43 additions and 0 deletions

25
.woodpecker/notify.yml Normal file
View File

@ -0,0 +1,25 @@
---
when:
- ref: refs/heads/main
- ref: refs/tags/**
steps:
matrix:
image: quay.io/thegeeklab/drone-matrix
settings:
homeserver:
from_secret: matrix_homeserver
password:
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

18
.woodpecker/test.yml Normal file
View File

@ -0,0 +1,18 @@
---
when:
- ref: refs/heads/main
- ref: refs/tags/**
- ref: refs/pull/**
steps:
lint:
group: test
image: docker.io/koalaman/shellcheck-alpine:stable
commands:
- shellcheck ./retry
test:
group: test
image: docker.io/bats/bats
commands:
- bats ./retry.bats