2023-03-08 16:44:37 +00:00
|
|
|
clone:
|
|
|
|
git:
|
|
|
|
image: woodpeckerci/plugin-git
|
|
|
|
settings:
|
|
|
|
recursive: true
|
|
|
|
|
|
|
|
pipeline:
|
|
|
|
build:
|
|
|
|
image: plugins/hugo
|
2023-03-09 18:34:40 +00:00
|
|
|
settings:
|
|
|
|
validate: true
|
2023-03-08 16:44:37 +00:00
|
|
|
|
|
|
|
publish:
|
2023-03-09 18:34:40 +00:00
|
|
|
image: alpine:latest
|
|
|
|
secrets: [ ssh_key ]
|
|
|
|
environment:
|
|
|
|
- ANSIBLE_HOST_KEY_CHECKING=False
|
|
|
|
commands:
|
2023-03-09 18:41:01 +00:00
|
|
|
- apk add --update ansible rsync
|
2023-03-09 18:34:40 +00:00
|
|
|
- printf "$SSH_KEY" > privateKey
|
|
|
|
- chmod 600 privateKey
|
|
|
|
- ansible-playbook --user igor --inventory hosts.ini --private-key privateKey main.yaml
|
2023-03-08 16:44:37 +00:00
|
|
|
|
|
|
|
notify:
|
|
|
|
image: plugins/matrix
|
|
|
|
settings:
|
|
|
|
homeserver: https://pnut-matrix.dreamfall.space
|
|
|
|
roomid: qjafxbUILIiwzyJWqf:mcmillian.ems.host
|
|
|
|
username: woodpeckerci
|
|
|
|
password:
|
|
|
|
from_secret: matrix_secret
|