Source files of publiccode.eu, the official website for the "Public Money, Public Code" campaign https://publiccode.eu

.drone.yml 621B

1234567891011121314151617181920212223
  1. pipeline:
  2. quality:
  3. image: williamyeh/ansible:debian8
  4. commands:
  5. - ansible-playbook -vvv playbook.yml -i hosts --syntax-check
  6. syntaxcheck:
  7. image: publysher/hugo
  8. commands:
  9. - cd site; ./build/build.sh syntax
  10. deploy:
  11. image: williamyeh/ansible:debian8
  12. secrets: [ ssh_key ]
  13. commands:
  14. - mkdir /root/.ssh && echo "$SSH_KEY" > /root/.ssh/id_rsa && chmod 0600 /root/.ssh/id_rsa
  15. - ssh-keyscan -H lund.fsfeurope.org >> ~/.ssh/known_hosts
  16. - ansible-playbook playbook.yml -i hosts
  17. when:
  18. event: [push, pull_request, tag, deployment]
  19. branch: master