33 lines
765 B
YAML
33 lines
765 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
|
|
from.name: Woodpecker CI
|
|
host: smtp.migadu.com
|
|
username:
|
|
from_secret: smtp_user
|
|
password:
|
|
from_secret: smtp_pass
|