publiccode.si/.drone.yml

23 lines
621 B
YAML
Raw Normal View History

2017-06-13 09:08:46 +02:00
pipeline:
2017-09-08 11:39:18 +02:00
quality:
2017-06-13 10:00:49 +02:00
image: williamyeh/ansible:debian8
2017-06-13 09:07:58 +02:00
commands:
- ansible-playbook -vvv playbook.yml -i hosts --syntax-check
2017-09-08 11:39:18 +02:00
syntaxcheck:
image: publysher/hugo
commands:
2017-09-12 10:00:13 +02:00
- cd site; ./build/build.sh syntax
2017-09-08 11:39:18 +02:00
2017-06-13 09:08:46 +02:00
deploy:
2017-06-13 10:00:49 +02:00
image: williamyeh/ansible:debian8
2017-06-13 09:42:37 +02:00
secrets: [ ssh_key ]
2017-06-13 09:10:11 +02:00
commands:
- mkdir /root/.ssh && echo "$SSH_KEY" > /root/.ssh/id_rsa && chmod 0600 /root/.ssh/id_rsa
2017-06-13 09:45:44 +02:00
- ssh-keyscan -H lund.fsfeurope.org >> ~/.ssh/known_hosts
2017-06-13 09:10:11 +02:00
- ansible-playbook playbook.yml -i hosts
2017-06-13 08:54:28 +02:00
when:
event: [push, pull_request, tag, deployment]
2017-06-13 08:54:28 +02:00
branch: master