docker-image-pipelines/.woodpecker/woodpecker-email.yaml

35 lines
898 B
YAML
Raw Normal View History

2023-11-05 01:57:53 +01:00
when:
- path:
include: [ '.woodpecker/woodpecker-email.yaml' ]
skip_clone: true
steps:
clone:
image: alpine/git
commands:
- git clone https://gitnet.fr/deblan/woodpecker-email.git .
- git checkout main
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:
from.address:
from_secret: smtp_notify_email
from.name: Woodpecker CI
host:
from_secret: smtp_notify_host
username:
from_secret: smtp_notify_email
password:
from_secret: smtp_notify_password
when:
- status: [ failure ]