2023-11-05 01:57:53 +01:00
|
|
|
when:
|
2024-04-06 00:07:17 +02:00
|
|
|
- branch: main
|
|
|
|
path:
|
2023-11-05 01:57:53 +01:00
|
|
|
include: [ '.woodpecker/woodpecker-email.yaml' ]
|
|
|
|
|
|
|
|
skip_clone: true
|
|
|
|
|
|
|
|
steps:
|
|
|
|
clone:
|
|
|
|
image: alpine/git
|
|
|
|
commands:
|
|
|
|
- git clone https://gitnet.fr/deblan/woodpecker-email.git .
|
2023-11-05 02:07:41 +01:00
|
|
|
- git checkout master
|
2023-11-05 01:57:53 +01:00
|
|
|
docker:
|
|
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
|
|
secrets: [docker_username, docker_password]
|
|
|
|
settings:
|
|
|
|
pull_image: true
|
|
|
|
registry: git.bluemedia.dev
|
|
|
|
repo: git.bluemedia.dev/bluemedia/woodpecker-email
|
|
|
|
platforms: linux/amd64, linux/arm64/v8
|
|
|
|
tag: latest
|
|
|
|
notify:
|
|
|
|
image: git.bluemedia.dev/bluemedia/woodpecker-email
|
|
|
|
settings:
|
2023-11-05 02:50:00 +01:00
|
|
|
from:
|
2023-11-05 01:57:53 +01:00
|
|
|
from_secret: smtp_notify_email
|
|
|
|
host:
|
|
|
|
from_secret: smtp_notify_host
|
|
|
|
username:
|
2023-11-05 02:50:00 +01:00
|
|
|
from_secret: smtp_notify_username
|
2023-11-05 01:57:53 +01:00
|
|
|
password:
|
|
|
|
from_secret: smtp_notify_password
|
2023-11-05 02:26:04 +01:00
|
|
|
recipients_only: true
|
|
|
|
recipients:
|
|
|
|
from_secret: smtp_notify_recipients
|
2023-11-05 01:57:53 +01:00
|
|
|
when:
|
|
|
|
- status: [ failure ]
|