test-proj/.woodpecker.yml
Morgan McMillian fc04b43b0e
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
mess with settings some more
2023-03-09 13:39:31 -08:00

26 lines
682 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: srv@clacks.network
host: smtp.migadu.com
username:
from_secret: smtp_user
password:
from_secret: smtp_pass
recipients:
- morgan@clacks.network