test-proj/.woodpecker.yml
Morgan McMillian 230fc54f08
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
test sending to author only
2023-03-09 12:53:30 -08:00

25 lines
678 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.address: woodpecker@clacks.network
from.name: woodpecker-ci
host: smtp.migadu.com
username:
from_secret: smtp_user
password:
from_secret: smtp_pass