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:
parent
8fccfdda3b
commit
f3f5bc13d4
25
.woodpecker/notify.yml
Normal file
25
.woodpecker/notify.yml
Normal 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
18
.woodpecker/test.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user