test-proj/.woodpecker.yml

26 lines
689 B
YAML

pipeline:
test:
image: alpine:latest
secrets: [ ssh_key ]
environment:
- ANSIBLE_PRIVATE_KEY=$SSH_KEY
- ANSIBLE_HOST_KEY_CHECKING=False
commands:
- apk add --update ansible
- printf "$SSH_KEY" > /tmp/privateKey
- chmod 600 /tmp/privateKey
- sha256sum /tmp/privateKey
- ansible-playbook --user igor --inventory hosts.ini --private-key /tmp/privateKey main.yml
notify:
image: deblan/woodpecker-email
settings:
from: woodpecker@clacks.network
host: smtp.migadu.com
username:
from_secret: smtp_user
password:
from_secret: smtp_pass
recipients:
- morgan@clacks.network