fix(ci): add woodpecker 3 syntax

This commit is contained in:
Simon Vieille 2025-03-01 10:35:06 +01:00
commit 339533f532

View file

@ -1,12 +1,13 @@
matrix:
PHP_VERSION:
- 8.4
- 8.3
- 8.2
- 8.1
- 8.0
- 7.4
- 7.3
- 7.1
# - 7.4
# - 7.3
# - 7.1
steps:
"Docker build and push":
@ -30,7 +31,7 @@ steps:
- event: cron
- branch: [master]
"Send notification":
"Send notification (success)":
image: deblan/woodpecker-email
settings:
dsn:
@ -41,5 +42,21 @@ steps:
recipients:
from_secret: mail_to
recipients_only: true
level: success
when:
status: [success, failure]
status: success
"Send notification (failure)":
image: deblan/woodpecker-email
settings:
dsn:
from_secret: mail_dsn
from:
address:
from_secret: mail_from
recipients:
from_secret: mail_to
recipients_only: true
level: failure
when:
status: failure