mcmillian.us/.woodpecker.yml

12 lines
351 B
YAML

pipeline:
publish:
image: alpine:latest
secrets: [ ssh_key ]
environment:
- ANSIBLE_HOST_KEY_CHECKING=False
commands:
- apk add --update ansible rsync openssh
- printf "$SSH_KEY" > privateKey
- chmod 600 privateKey
- ansible-playbook --user igor --inventory hosts.ini --private-key privateKey main.yaml