morgan.mcmillian.dev/.woodpecker.yml
Morgan McMillian 664c0c1bb9
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
fix email notification step
2023-08-10 16:49:50 -07:00

34 lines
820 B
YAML

clone:
git:
image: woodpeckerci/plugin-git
settings:
recursive: true
pipeline:
build:
image: plugins/hugo
settings:
validate: true
publish:
image: alpine:latest
secrets: [ ssh_key ]
environment:
- ANSIBLE_HOST_KEY_CHECKING=False
commands:
- apk add --update ansible rsync openssh
- printf "$SSH_KEY" > privateKey
- chmod 600 privateKey
- ansible-playbook --user igor --inventory hosts.ini --private-key privateKey main.yaml
notify:
image: deblan/woodpecker-email
settings:
from.address: woodpecker@clacks.network
host: smtp.migadu.com
username:
from_secret: smtp_user
password:
from_secret: smtp_pass
evaluate: 'CI_STEP_STATUS == "failure" || CI_PREV_PIPELINE_STATUS == "failure"'