31 lines
735 B
YAML
31 lines
735 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
|
|
- printf "$SSH_KEY" > privateKey
|
|
- chmod 600 privateKey
|
|
- ansible-playbook --user igor --inventory hosts.ini --private-key privateKey main.yaml
|
|
|
|
notify:
|
|
image: plugins/matrix
|
|
settings:
|
|
homeserver: https://pnut-matrix.dreamfall.space
|
|
roomid: qjafxbUILIiwzyJWqf:mcmillian.ems.host
|
|
username: woodpeckerci
|
|
password:
|
|
from_secret: matrix_secret
|